clavis prompt
Print the linked project and environment for your shell prompt
sh
clavis prompt [flags]Print the linked project and environment as a short word, such as web:dev, for your shell prompt. Production environments print as web:PRODUCTION! so a risky terminal stands out. It reads only .clavis.yaml, never calls the server, and prints nothing outside a linked folder, so it is fast enough to run on every prompt.
--shell bash, zsh or fish prints the lines to add to your startup file.
Examples
sh
clavis promptSet up zsh
sh
clavis prompt --shell zshFlags
--shell string- print the lines to add to your shell's startup file: bash, zsh or fish
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command