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.

AI CLI·20 commands·Last updated 2026-09-10
tabnineaicoding-assistantclichatagentcompletion

Install and Start 4

npm install -g @tabnine/cli
Install Tabnine CLI globally
tabnine
Start the interactive CLI
tabnine --version
Show version
tabnine --help
List commands and shortcuts

Interactive Commands 6

/help
Show all commands and shortcuts
/model
Switch the AI model
/clear
Clear the current conversation
/settings
Open settings
/quit
Quit the CLI
tabnine -p "what are the main deps in package.json"
Ask non-interactively

Auth and Automation 6

TABNINE_TOKEN=xxx tabnine -p "explain this code"
Non-interactive with a token
export TABNINE_TOKEN=xxx
Set a persistent token env var
tabnine-opencode auth login
Log in for the opencode plugin
tabnine-opencode --help
opencode integration help
tabnine -p "refactor the auth module"
Do an edit task non-interactively
Ctrl+C
Quit Tabnine CLI

File Operations 4

Explain what @src/index.ts does
Reference a file with @ for the AI to read
Find all TODO comments in @src/
Search TODOs in a dir
Create a new file README.md with documentation
Let Tabnine generate and write a file
/help
All available shortcuts

Tips

  • 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