CLI reference/Environments/env
clavis env branch
Create or refresh a preview environment for a git branch
sh
clavis env branch [BRANCH] [flags]Create or refresh a preview environment for a git branch (the current one by default). It inherits from the first development environment and expires after the organization's preview retention period; running the command again extends it.
Examples
sh
clavis env branch
clavis env branch feature/checkoutFlags
-b, --branch string- git branch (default: current branch)
Details
Set branch_envs: true in .clavis.yaml to use the branch environment automatically when it exists.
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