Nscale CLI
This guide will walk you through installing and using the Nscale Command Line Interface (CLI).
The Nscale CLI is a powerful tool that allows you to interact with Nscale services directly from your terminal.
Installation
You can install the Nscale CLI using one of the following methods:
Option 1: Download Binary
Download the binary for your operating system from the releases page.
Option 2: Homebrew (for macOS users)
You can install the Nscale CLI using Homebrew:
Alternatively, you can combine both steps into a single command:
Authentication
Before using protected commands, you need to authenticate:
This will open a browser to the Nscale Console UI, and store your access token on successful login.
Basic Usage
After installation and authentication, you can start using the CLI:
Exploring Available Models and Endpoints
To list available serverless endpoints, you need your organisation ID.
Your organisation ID is in the browser URL after logging in. If you set up completions, you should be able to tab complete after the -o
.
To inference models, you need your API Key. You can create one in the Nscale Console UI.
Getting Help
You can get help for any command by adding the --help
flag:
Shell Completion
To enhance your CLI experience, you can set up shell completion for autocomplete of CLI commands, and organisations.
Bash
Zsh
Fish
PowerShell
Next Steps
Now that you have the CLI set up, you can:
Contact Support
Need assistance? Get help from our support team