Source: https://datafa.st/docs/cli-completion
Markdown source: https://datafa.st/docs/cli-completion.md
Description: Enable Tab completion for the DataFast CLI in bash, zsh, or fish.

# CLI — Shell completion

Enable Tab key completion so the shell suggests commands and subcommands as you type.

## Install

Run the install command once — it writes the completion setup into your shell's init file automatically:

```sh
datafast completion install
```

Restart your terminal (or source your shell init file) to activate:

```sh
# bash
source ~/.bash_profile   # or ~/.bashrc

# zsh
source ~/.zshrc

# fish restarts automatically on new sessions
```

Now press **Tab** after `datafast` to see available commands:

```sh
datafast <Tab>
# login  logout  whoami  config  websites  tokens  alerts  funnels  analytics  completion
```

Completion also works with the singular website alias and website subcommands:

```sh
datafast website <Tab>
datafast websites <Tab>
# list  get  create  update  delete  kpi  apikeys  team
```

## Uninstall

Remove the completion setup from your init file:

```sh
datafast completion uninstall
```
