This repository contains the source code for the Nais command line interface (CLI).
See the CLI documentation for usage instructions.
Follow the shared relay integration requirements and fill in the integration template in the product's design or rollout documentation. A new command needs a product-specific authenticated NAIS API mutation and an approved target policy; the CLI does not create RelayAccess resources.
mise installmise run build
mise run test
./bin/nais --version
For example, enable Zsh completion in the current session:
source <(./bin/nais completion zsh)Supported shells: Zsh, Bash, Fish, and PowerShell. Run ./bin/nais completion <shell> --help for shell-specific setup instructions.
We use otel for instrumentation and record the user interaction with the CLI to see if we can optimize the user experience.
We respect your privacy and do not collect telemetry if you set the environment variable DO_NOT_TRACK=1,
following the Do Not Track convention.
There's a grafana dashboard.
This repo uses Conventional Commits. Please read up on how to format your commit messages. Please see the commit-msg hook to see which types we allow.