Installation

Install Tabnine CLI on your system.

Prerequisites

  • Node.js version 20 or higher

  • Access to a tabnine host

Download and Install

Run the appropriate command for your platform. Replace <YOUR TABNINE HOST> with the URL of your tabnine console (For example: https://console.tabnine.com):

macOS, Linux, WSL

export TABNINE_HOST="<YOUR TABNINE HOST>"
curl $TABNINE_HOST/update/cli/installer.mjs | node --input-type=module - $TABNINE_HOST

Windows PowerShell

$env:TABNINE_HOST = "<YOUR TABNINE HOST>"
irm $env:TABNINE_HOST/update/cli/installer.mjs | node --input-type=module - $env:TABNINE_HOST

Windows CMD

set TABNINE_HOST="<YOUR TABNINE HOST>"
curl %TABNINE_HOST%/update/cli/installer.mjs | node --input-type=module - %TABNINE_HOST%

Add to PATH

After installation, add Tabnine CLI to your PATH.

macOS, Linux, WSL

The default installation location is:

Note: ~/.local/ is different than /local/. If you don't have a ~/.local/ folder, create it first:

Add to your PATH by adding this line to your shell configuration file (~/.bashrc, ~/.zshrc, etc.):

Then reload your shell configuration:

Windows

The installer should add Tabnine CLI to your PATH automatically. If not, add the installation directory manually:

1

Open System Properties

Open System PropertiesEnvironment Variables.

2

Edit User Path

Under User variables, select Path and click Edit.

3

Add Directory

Add the Tabnine CLI installation directory.

4

Save

Click OK to save.

Verify Installation

Check that Tabnine CLI is correctly installed:

You should see the version number displayed.

First Run

Start Tabnine CLI:

Authentication

On first run, you'll be prompted to sign in to Tabnine:

1

Press OK when prompted for authentication.

2

Your browser will open to tabnine.com.

3

If you're already signed in, authentication will be automatic.

4

If not, log in with your Tabnine credentials.

5

Return to the terminal - you're ready to use Tabnine CLI!

Troubleshooting

chevron-right"Command not found: tabnine"hashtag

Solution: Ensure Tabnine CLI is in your PATH:

chevron-right"Node.js not found"hashtag

Solution: Install Node.js version 20 or higher from nodejs.orgarrow-up-right

chevron-rightInstallation Failshashtag

Common causes:

  • No access to tabnine host

  • Node.js version too old

  • Insufficient permissions

Solutions:

  • Check network connection

  • Update Node.js: node --version (should be 20+)

  • On Unix systems, ensure ~/.local/bin has write permissions

chevron-rightAuthentication Failshashtag

Solution: See the Troubleshooting section.

Updating Tabnine CLI

Tabnine CLI checks for updates automatically. To manually update, re-run the installer according to the installation instructions.

Sometimes, you will be prompted to restart Tabnine CLI following an update. This will typically happen at the beginning of a session, as seen here:

You may be asked to re-run Tabnine after an update

Uninstall

To remove Tabnine CLI:

macOS, Linux, WSL

Windows

Then remove the installation directory from your PATH.

Last updated

Was this helpful?