The Nylas CLI includes utilities beyond email and calendar. nylas completion bash is one of them.
The nylas completion bash command outputs a shell completion script that enables tab-completion for all Nylas CLI commands, flags, and arguments. Pipe the output into your shell's completion directory or source it from your profile.
Syntax
nylas completion bash
How It Works
The Nylas CLI includes several utilities beyond the core email, calendar, and contacts commands. These are designed to complement your workflow without requiring separate tools.
Examples
Add completions to .bashrc:
nylas completion bash >> ~/.bashrc
source ~/.bashrc
Add completions to .zshrc:
nylas completion zsh >> ~/.zshrc
source ~/.zshrc
Fish shell completions:
nylas completion fish > ~/.config/fish/completions/nylas.fish
Common Issues
Completions not working after sourcing
Open a new terminal session. Some shells cache completions and won't pick up changes until restart.
Completions outdated after CLI update
Regenerate the completion script after each CLI update. The script is tied to the installed version's command set.
Tips
Pipe to jq: nylas completion bash --json | jq '.' gives you structured data you can filter and transform.
Combine with other commands: Chain nylas completion bash with other Nylas CLI commands using shell pipes and variables for complex workflows.
Full docs: nylas completion bash reference — all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas — other install methods
Top comments (0)