Skip to main content

lacework completion zsh

Generate the autocompletion script for zsh

Synopsis

Generate the autocompletion script for the zsh shell.

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 in your current shell session:

source <(lacework completion zsh); compdef _lacework lacework

To load completions for every new session, execute once:

Linux:

lacework completion zsh > "${fpath[1]}/_lacework"

macOS:

lacework completion zsh > $(brew --prefix)/share/zsh/site-functions/_lacework

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

lacework completion zsh [flags]

Options

  -h, --help              help for zsh
--no-descriptions disable completion descriptions

Options inherited from parent commands

  -a, --account string      account subdomain of URL (i.e. <ACCOUNT>.lacework.net)
-k, --api_key string access key id
-s, --api_secret string secret access key
--api_token string access token (replaces the use of api_key and api_secret)
--debug turn on debug logging
--json switch commands output from human-readable to json format
--nocache turn off caching
--nocolor turn off colors
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
--organization access organization level data sets (org admins only)
-p, --profile string switch between profiles configured at ~/.lacework.toml
--subaccount string sub-account name inside your organization (org admins only)

SEE ALSO