Tabnine CLI Cheatsheet - Terminal AI Coding Assistant Full Reference

Tabnine CLI is often treated as a bolt-on to the IDE plugin, but treated as a standalone tool it suits a specific class of task: asking questions about a repository, or having it read and rewrite files, without opening an editor at all. Knowing what runtime dependencies package.json actually declares, explaining code inside a GUI-less build container, or running one refactoring pass over a module in CI - in each case launching an editor just to ask is pure waste. This sheet covers install and launch, interactive commands, authentication and automation, and file operations, with @ references to files or directories at the centre, letting the tool read the context instead of having you paste it. Reach for it when the deciding question is whether a human needs to stay in the loop: the interactive mode suits exploration and repeated adjustment, while -p suits one-shot scripted calls. Authentication is the prerequisite for both shapes, and a non-interactive environment without a token will simply fail repeatedly.

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