Tilt CLI Reference
tilt create filewatch
Create a filewatch in a running tilt session
Synopsis
Create a FileWatch in a running tilt session.
To create a file watch, first supply the name of the watch so you can reference it later. Then supply the paths to watch. All paths will be watched recursively.
On its own, a FileWatch is an object that watches a set of files, and updates its status field with the most recent file changed.
A FileWatch is intended to combine with other Tilt objects to trigger events when a file changes.
tilt create filewatch [NAME] [PATHS] --ignore [IGNORES]
Examples
tilt create fw src-and-web src web --ignore=web/node_modules
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)
-h, --help help for filewatch
--host string Host for the Tilt HTTP server. Only necessary if you started Tilt with --host. Overrides TILT_HOST env variable. (default "localhost")
--ignore strings Patterns to ignore. Supports same syntax as .dockerignore. Paths are relative to the current directory.
-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].
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.