Tabnine CLI Cheatsheet - Terminal AI Coding Assistant Full Reference
Tabnine is an AI coding assistant for developers with a terminal CLI besides IDE plugins: ask code questions, read and write files, and review code from the command line. tabnine is its interactive entry, and -p runs non-interactively for scripts. This sheet covers launch, slash commands, auth, and file ops so you can use Tabnine in the terminal.
Install and Start 4
npm install -g @tabnine/clitabninetabnine --versiontabnine --helpInteractive Commands 6
/help/model/clear/settings/quittabnine -p "what are the main deps in package.json"Auth and Automation 6
TABNINE_TOKEN=xxx tabnine -p "explain this code"export TABNINE_TOKEN=xxxtabnine-opencode auth logintabnine-opencode --helptabnine -p "refactor the auth module"Ctrl+CFile Operations 4
Explain what @src/index.ts doesFind all TODO comments in @src/Create a new file README.md with documentation/helpTips
- Non-interactive mode still needs auth: log in once interactively, or set TABNINE_TOKEN as a personal access token.
- Reference files or dirs with @ so Tabnine reads project context before answering or editing.
- /model switches the underlying model mid-session; pick faster or stronger by task.
FAQ
How is Tabnine CLI related to the IDE plugin?
Same account system; the CLI is the terminal extension of the plugin for asking, reading, writing, and reviewing code without opening the editor.
How to auth in non-interactive mode?
Log in once interactively to persist credentials; in CI set TABNINE_TOKEN as a personal access token (takes precedence) to run headless.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Sep 10, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us