Commands

Tabnine CLI supports built-in commands to help you manage your session, customize the interface, and control its behavior. Commands are prefixed with /, @, or !.

Slash Commands (/)

Slash commands provide meta-level control over the CLI.

Command
Description

Core Commands

/help or /?

Display help information about Tabnine CLI, including available commands and their usage.

/about

Show version information. Share this when filing issues.

/auth

Open a dialog to change the authentication method.

/quit or /exit

Exit Tabnine CLI.

/clear

Clear the terminal screen and scrollback. Shortcut: Ctrl+L

Session Management

/chat save <tag>

Save current conversation with a tag.

/chat resume <tag>

Resume a saved conversation.

/chat list

List available saved conversations.

/chat delete <tag>

Delete a saved conversation.

/chat share <file.md>

Export conversation to Markdown or JSON.

/resume

Browse and resume previous conversation sessions interactively.

/restore [tool_call_id]

Restore project files to the state before a tool was executed. Lists available checkpoints if no ID provided.

/compress

Replace chat context with a summary to save tokens while retaining history.

Tools & Functionality

/mcp list or /mcp ls

List configured MCP servers and tools.

/mcp desc

List with descriptions.

/mcp schema

List with descriptions and schemas.

/mcp auth <server>

Authenticate with OAuth-enabled server.

/mcp refresh

Restart all MCP servers.

/tools [desc]

Display available tools.

Memory Management

/memory add <text>

Add text to AI's memory.

/memory show

Display full memory content.

/memory refresh

Reload from TABNINE.md files.

/memory list

List paths of TABNINE.md files.

Directory Management

/directory add <path>

Add directories to workspace.

/directory show

Display all workspace directories.

Configuration

/model

Open dialog to choose your AI model. See Model Selection.

/settings

Open settings editor to view and modify Tabnine CLI settings. See Settings.

/theme

Open dialog to change the visual theme. See Themes.

/editor

Open dialog for selecting supported editors.

/vim

Toggle vim mode on/off.

Utilities

/copy

Copy last output to clipboard. Requirements: Linux: xclip or xsel, macOS: pbcopy, Windows: clip.

/stats

Display session statistics (token usage, cached tokens, duration).

/bug <description>

File an issue about Tabnine CLI.

/init

Analyze current directory and generate a tailored TABNINE.md file.

/hooks

Manage hooks (if enabled). See Hooks.

/permissions

Manage folder trust settings (if enabled).


At Commands (@)

Include file/directory content in your prompt.

@

Inject file or directory content.

Examples:

Features:

  • Git-aware filtering (excludes node_modules/, .git/, etc.)

  • Recursive directory reading

  • Escape spaces: @My\ Documents/file.txt

Note: Uses read_many_files tool internally

@ (lone)

Pass literal @ symbol to model.


Shell Mode (!)

Execute shell commands directly.

!

Execute a shell command and return to Tabnine CLI.

Examples:

Shells:

  • Linux/macOS: bash

  • Windows: powershell.exe -NoProfile -Command

! (toggle)

Toggle shell mode on/off. When active, all input is interpreted as shell commands.

Environment: Commands run with TABNINE_CLI=1 environment variable set.

triangle-exclamation

Custom Commands

Custom commands let you define reusable shortcuts for frequently-used prompts, saving time and ensuring consistency.

Creating Custom Commands

Add to .tabnine/commands/ directory:

Example: .tabnine/commands/review.md

Using Custom Commands

The command template is expanded with your additional input.

Command Location

Custom commands are stored in:

  • Global: ~/.tabnine/commands/

  • Project: <project>/.tabnine/commands/

Command Format

Each command is a Markdown file with frontmatter:

Examples

Code Review

.tabnine/commands/review.md:

Documentation

.tabnine/commands/docs.md:

Testing

.tabnine/commands/tests.md:

Best Practices

  • Keep commands focused - One clear purpose per command.

  • Use descriptive names - Short but meaningful.

  • Add good descriptions - Help yourself remember what each command does.

  • Version control - Commit .tabnine/commands/ to share with your team.

Listing Custom Commands

Custom commands appear in /help output alongside built-in commands.


Input Shortcuts

  • Undo: Ctrl+Z

  • Redo: Ctrl+Shift+Z

See Keyboard Shortcuts for complete list.

Last updated

Was this helpful?