﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>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  goals  alerts  funnels  analytics  completion
```

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

```sh
datafast website <Tab>
datafast websites <T