shc exec
shc exec
Section titled “shc exec”run a command in a service container
Synopsis
Section titled “Synopsis”Run a one-shot command inside a service container of the current stack.
shc exec --service <name> -- <command>... [flags]Options
Section titled “Options” -h, --help help for exec -S, --service string target service (required) -u, --user string user to run command as -w, --workdir string working directory in containerOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) -e, --environment string environment name (default: $SHC_ENVIRONMENT) --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -s, --stack string stack name (default: $SHC_STACK) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc - Selfhosted Cloud CLI
shc@docs:~$