kalix completion

Generate shell completion scripts


The kalix completion command generates completion scripts for Bash, Zsh, fish and PowerShell.

If you are running on Linux or macOS, the command automatically detects your default shell if the 'SHELL' environment variable is set. On Windows, or if you want to override the shell type, you provide the shell type as an explicit argument.

For more help with configuring the completion script, see https://docs.kalix.io/kalix/command-completion.html

To load completions:


$ source <(kalix completion bash)

# To load completions for each session, execute once:
# Linux:
$ kalix completion bash > /etc/bash_completion.d/kalix
# macOS:
$ kalix completion bash > /usr/local/etc/bash_completion.d/kalix


# If shell completion is not already enabled in your environment,
# you will need to enable it.  You can execute the following once:

$ echo "autoload -U compinit; compinit" >> ~/.zshrc

# To load completions for each session, execute once:
$ kalix completion zsh > "${fpath[1]}/_kalix"
# To work around permission issues, you may instead need to execute:
$ kalix completion zsh | sudo tee "${fpath[1]}/_kalix" >/dev/null

# You will need to start a new shell for this setup to take effect.


$ kalix completion fish | source

# To load completions for each session, execute once:
$ kalix completion fish > ~/.config/fish/completions/kalix.fish


PS> kalix completion powershell | Out-String | Invoke-Expression

# To load completions for every new session, run:
# PS> kalix completion powershell > kalix.ps1
# and source this file from your PowerShell profile.
kalix completion [flags]


  -h, --help   help for completion

Options inherited from parent commands

      --cache-file string   location of cache file (default "~/.kalix/cache.yaml")
      --config string       location of config file (default "~/.kalix/config.yaml")
      --context string      configuration context to use
      --disable-prompt      Disable all interactive prompts when running kalix commands. If input is required, defaults will be used, or an error will be raised.
                            This is equivalent to setting the environment variable KALIX_DISABLE_PROMPTS to true.
  -o, --output string       set output format to one of [text,json,gotemplate=] (default "text")
  -q, --quiet               set quiet output (helpful when used as part of a script)
      --timeout duration    client command timeout (default 10s)
      --use-grpc-web        use grpc-web when talking to Kalix APIs. This is useful when behind corporate firewalls that decrypt traffic but don't support HTTP/2.
  -v, --verbose             set verbose output