Skip to content

runai exec


Execute a command inside a running job

Note: to execute a bash command, you can also use the shorthand runai bash


runai exec job-name command 
    [--stdin | -i] 
    [--tty | -t]
    [--loglevel value] 
    [--project string | -p string] 
    [--help | -h]


<job-name> the name of the job to run the command in

<command> the command itself (e.g. bash)

--stdin | -i

Keep STDIN open even if not attached

--tty | -t

Allocate a pseudo-TTY

Global Flags

--loglevel (string)

Set the logging level. One of: debug|info|warn|error (default "info")

--project | -p (string)

Specify the project to which the command applies. By default, commands apply to the default project. To change the default project use runai project set <project-name>.

--help | -h

Show help text


The command will run in the context of the container

See Also

Last update: August 30, 2020