Tilt CLI Reference
tilt create cmd
Create a local command in a running tilt session
Synopsis
Create a local command in a running tilt session.
Intended to compose with other Tilt APIs that can restart the command or monitor its status.
COMMAND should be an executable. A shell script will not work.
To run a shell script, use ‘sh -c’ (as shown in the examples).
tilt create cmd NAME COMMAND [ARG...]
Examples
tilt create cmd my-cmd echo hello world
tilt create cmd my-cmd sh -c "echo hi && echo bye"
Options
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-e, --env stringArray Set environment variables in the form NAME=VALUE.
--filewatch strings Re-run the command whenever the named filewatches detect a change. See 'tilt create filewatch' for more.
-h, --help help for cmd
--host string Host for the Tilt HTTP server. Only necessary if you started Tilt with --host. Overrides TILT_HOST env variable. (default "localhost")
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
--port int Port for the Tilt HTTP server. Only necessary if you started Tilt with --port. Overrides TILT_PORT env variable. (default 10350)
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
--template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
-w, --workdir string Working directory of the command. If not specified, uses the current working directory.
Options inherited from parent commands
-d, --debug Enable debug logging
--klog int Enable Kubernetes API logging. Uses klog v-levels (0-4 are debug logs, 5-9 are tracing logs)
-v, --verbose Enable verbose logging
SEE ALSO
- tilt create - Create a resource from a file or from stdin.