Skip to main content

CLI Usage

Basic Commands

CommandDescriptionExample
initInitialize a new environment.sailr init -n my-environment
deployDeploy an environment to your Kubernetes cluster.sailr deploy -n my-environment -c my-context-name
generateGenerate manifests without deploying.sailr generate -n my-environment
buildBuild container images for your services.sailr build my-environment
goCombine build, generate, and deploy in one step.sailr go -n my-environment -c my-context-name
completionsGenerate shell completion scripts (bash or zsh).sailr completions bash
helpShow help information for all Sailr commands.sailr --help

Additional Options

  • --force (with build): Force rebuild all service images, ignoring the cache.
  • Generating Specific Services: Use the --ignore flag with the build and go commands.
  • Building without Deployment: The build command focuses only on image creation.
  • Service Build Caching: Use --force to rebuild images even if they are cached.