> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

Our Python SDK also includes our CLI tool `nu`. You can use `nu` to easily access information about your Nucleus Datasets and Models right from your favorite shell.

We recommend installing it with [pipx](https://pipx.pypa.io/stable/). This way, the `nu` CLI will install such that it can be accessed even from within other virtualenvs.

To install pipx on MacOS:

```text theme={null}
brew install pipx
pipx ensurepath
```

Otherwise, install pipx via pip (requires pip 19.0 or later):

```text theme={null}
python3 -m pip install --user pipx
python3 -m pipx ensurepath
```

Then install `nu` with

```text theme={null}
pipx install scale-nucleus
```

The CLI tool listens to the same environment variable recommended to set up in [Authentication](https://api-reference.scale.com/docs/nucleus/authentication.md). We also recommend you start by installing shell completions that are available for bash, zsh and fish.

```text theme={null}
export NUCLEUS_API_KEY=<your_api_key>

nu install-completion 
```

When running `nu` you should be greeted with

```text theme={null}
Usage: nu [OPTIONS] COMMAND [ARGS]...

  Nucleus CLI (nu)

      ███╗   ██╗██╗   ██╗ ██████╗██╗     ███████╗██╗   ██╗███████╗
      ████╗  ██║██║   ██║██╔════╝██║     ██╔════╝██║   ██║██╔════╝
      ██╔██╗ ██║██║   ██║██║     ██║     █████╗  ██║   ██║███████╗
      ██║╚██╗██║██║   ██║██║     ██║     ██╔══╝  ██║   ██║╚════██║
      ██║ ╚████║╚██████╔╝╚██████╗███████╗███████╗╚██████╔╝███████║
      ╚═╝  ╚═══╝ ╚═════╝  ╚═════╝╚══════╝╚══════╝ ╚═════╝ ╚══════╝

      `nu` is a command line interface to interact with Scale Nucleus
      (https://dashboard.scale.com/nucleus)

Options:
  --web   Launch browser
  --help  Show this message and exit.

Commands:
  datasets            Datasets are the base collections of items in Nucleus
  install-completion  Install shell completion script to your rc file
  jobs                Jobs are a wrapper around various long-running...
  models              Models help you store and access your ML model data
  reference           View the Nucleus reference documentation in the...
  slices              Slices are named subsets of Datasets
  tests               Scenario Tests allow you to test your Models
```
