# nodus completion zsh

> Generate the autocompletion script for zsh

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_completion_zsh/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus 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:

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

To load completions in your current shell session:

```plaintext
source <(nodus completion zsh)
```

To load completions for every new session, execute once:

#### Linux:

```plaintext
nodus completion zsh > "${fpath[1]}/_nodus"
```

#### macOS:

```plaintext
nodus completion zsh > $(brew --prefix)/share/zsh/site-functions/_nodus
```

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

```plaintext
nodus completion zsh [flags]
```

### Options

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

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus completion](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_completion/) - Generate the autocompletion script for the specified shell

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus completion zsh
```
