akkasls completion

Generate shell completion scripts


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

If you are running on Linux or macOS, the command autodetects your default shell. On Windows, or if you want to generate a completion file for a different shell, you have to provide the flag with the shell type explicitly.

For more help with configuring the completion script, see https://developer.lightbend.com/docs/akka-serverless/akkasls/command-completion.html

To load completions:


$ source <(akkasls completion --shell bash)

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


# 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:
$ akkasls completion --shell zsh > "${fpath[1]}/_akkasls"
# To work around permission issues, you may instead need to execute:
$ akkasls completion --shell zsh | sudo tee "${fpath[1]}/_akkasls" >/dev/null

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


$ akkasls completion --shell fish | source

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


PS> akkasls completion --shell powershell | Out-String | Invoke-Expression

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


  -h, --help           help for completion
      --shell string   The shell type for which to generate an auto-completion file. Valid options are 'bash', 'zsh', 'fish' or 'powershell'.
                       (default is the value of the SHELL environment variable if set.)

Options inherited from parent commands

      --config string      location of config file (default "~/.akkaserverless/config.yaml")
      --context string     configuration context to use
  -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)
  -v, --verbose            set verbose output


  • akkasls - Akka Serverless control