Quickstart

Get started with Tabnine CLI in 5 minutes!

Before you begin, make sure you have Tabnine CLI installed:

Installation Guide - Install Tabnine CLI on your system

If you've already installed Tabnine CLI, you're ready to go!


Step 1: Start Tabnine CLI

Open your terminal and start Tabnine CLI:

tabnine

Step 2: Authenticate

On first run, you may be prompted to authenticate. Follow the on-screen instructions to log in with your Tabnine account.

Step 3: Your First Conversation

Once authenticated, you're ready to use Tabnine CLI!

Example 1: Ask a Question

> What is Tabnine CLI and how can it help me?

The AI will explain Tabnine CLI's capabilities.

Example 2: List Files

Tabnine CLI will show you the directory structure.

Example 3: Read and Explain Code

The AI will read the file and provide an analysis.

Example 4: Write Code

Tabnine CLI will generate the code and can write it to a file if you confirm.

Essential Commands

Tabnine CLI has built-in slash commands. Here are the most useful:

Get Help

Shows all available commands and keyboard shortcuts.

Change Model

Opens a dialog to select a different AI model.

Clear Conversation

Clears the current conversation history.

View Settings

Opens the settings dialog to configure Tabnine CLI.

Exit

Press Ctrl+C or type:

Working with Files

Read Files

Reference files using the @ symbol:

The AI will automatically read and analyze the file.

Edit Files

The AI will propose changes and ask for confirmation before modifying the file.

Create Files

The AI will generate content and create the file (with your confirmation).

Search Files

The AI will search through your files.

Using for Different Tasks

Code Review

Get AI-powered feedback on your code.

Bug Fixing

Get help debugging issues.

Documentation

Automatically create documentation.

Learning

Understand your codebase better.

Keyboard Shortcuts

Master these shortcuts for efficiency:

Shortcut
Action

Ctrl+C

Exit Tabnine CLI

Ctrl+L

Clear screen

/

Navigate history

Ctrl+U

Clear current input

Type /help to see all shortcuts.

Non-Interactive Mode

For scripts and automation, use non-interactive mode:

Pro Tips

Be Specific

❌ "Review my code" ✅ "Review @src/auth.ts for security vulnerabilities and error handling"

Use Context

Add project context with a TABNINE.md file in your project root:

Chain Tasks

Get Coaching

Common Workflows

Morning Code Review

Before Committing

Learning New Code

Refactoring

Troubleshooting

Slow Response

If responses are slow:

  1. Check your network connection

  2. Try a different model with /model

  3. Be more specific in your prompts

Command Not Found

If you see "command not found: tabnine":

  1. Verify Tabnine CLI is installed - see Installation Guide

  2. Check your PATH configuration

  3. Try running with full path: ~/.local/bin/tabnine (Linux/macOS)

Next Steps

Now that you're familiar with the basics:

Learn More

Explore Powerful Features

See Real Examples

Get Help

Practice Exercise

1

Start Tabnine CLI

Start the CLI:

tabnine

2

List files

Ask:

What files are in this directory?

3

Read a file

Ask:

Explain what @package.json contains

4

Get help

Type:

/help

5

Change model

Type:

/model and explore options

6

Ask about code

Ask:

What are the best practices for error handling?

Congratulations! You're now ready to use Tabnine CLI effectively. Happy coding! 🎉

Last updated

Was this helpful?