netsoc webspace exec
netsoc webspace exec
Execute command in webspace
Synopsis
Execute a command inside a webspace. By default runs interactively (with a PTY). Signals will be forwarded (SIGINT, SIGTERM etc.).
If this command does not run in a TTY, the remote command will run non-interactively and the output will be YAML containing the captured stdout, stderr and exit code. (Use --output to use a different format)
--uid, --gid, --env and --cwd only apply when running interactively.
netsoc webspace exec -- command [arg...] [flags]
Options
--cwd string webspace command working directory
-e, --env stringArray environment variables to pass to command
--gid int32 webspace Linux group ID to run as
-h, --help help for exec
-o, --output interactive|yaml|json|template=<Go template> output format interactive|yaml|json|template=<Go template> (default "interactive")
--uid int32 webspace Linux user ID to run as
-u, --user string (admin only) user to perform action as (default "self")
Options inherited from parent commands
--config string config file (default "/home/runner/.netsoc.yaml")
--debug print debug messages
SEE ALSO
- netsoc webspace - Manage webspace
Auto generated by spf13/cobra on 25-Oct-2020
Last update: 2020-10-25