Usage Commands Cloud Contributors

Tuist supports autocompletion, so just by hitting a tab your shell can give you hints what you can type next. This does not come out the box as it is dependent on your shell, so follow the appropriate set of instructions below.

Installing Zsh Completions

If you have oh-my-zsh installed, you already have a directory of automatically loading completion scripts — .oh-my-zsh/completions. Copy your new completion script to a new file in that directory called _tuist.

Without oh-my-zsh, you’ll need to add a path for completion scripts to your function path, and turn on completion script autoloading. First, add these lines to ~/.zshrc:

fpath=(~/.zsh/completion $fpath)
autoload -U compinit
Copy the content

Next, create a directory at ~/.zsh/completion and copy the completion script to the new directory, again into a file called _tuist.

Installing Bash Completions

If you have bash-completion installed, you can just copy your new completion script to file /usr/local/etc/bash_completion.d/_tuist.

Without bash-completion, you’ll need to source the completion script directly. Copy it to a directory such as ~/.bash_completions/, and then add the following line to ~/.bash_profile or ~/.bashrc:

source ~/.bash_completions/example.bash
To learn more about how completions work, we refer you to [Swift Argument Parser documentation](
export const _frontmatter = {"name":"Autocompletions","excerpt":"To ease usage of tuist, learn how you can generate autocompletions for your shell"}
Copy the content

By using this website, you agree to our cookie policy.