codchi exec

Execute a command inside a code machine. The code machine will be started if not already running.

Synopsis

codchi exec -v|--verbose... -q|--quiet... --json -h|--help <NAME> CMD

Options

  • -v, --verbose
    Increase logging verbosity
  • -q, --quiet
    Decrease logging verbosity
  • --json
    Produce output in JSON format, suitable for consumption by another program
  • -h, --help
    Print help (see a summary with -h)
  • <NAME>
    Name of the code machine
  • CMD
    Command with arguments to run. Leave empty to open a shell

Extra

Running graphical programs

Programs which provide shortcuts (usually graphical programs) are added to your host's system menu as shortcuts and can be started by clicking them.

Examples

Open a shell inside :

codchi exec <MACHINE_NAME>

Run PROGRAM [ARGS...] inside :

codchi exec <MACHINE_NAME> PROGRAM [ARGS...]

For example, uname -a:

codchi exec <MACHINE_NAME> uname -a

If some options conflict with Codchi's options, you can escape them with --:

codchi exec <MACHINE_NAME> -- PROGRAM [ARGS...]