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.
nscale inferencing serverless endpoints list -o <your organisation id>
To inference models, you need your API Key. You can create one in the Nscale Console UI or via the CLI, before supplying it for example to the nscale chat CLI command.
nscale chat "What is machine learning?" -a $NSCALE_API_KEY -m meta-llama/Llama-3.1-8B-Instruct
# Load completions for current sessionsource <(nscale completion zsh)# To load completions for every session, execute once:# First, check your fpath directories to find the right location:echo $fpath# Then, create a directory for completions if it doesn't exist:mkdir -p ~/.zsh/completionsnscale completion zsh > ~/.zsh/completions/_nscale# If shell completion is not already enabled in your environment,# you will need to enable it. You can execute the following once:echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrcecho 'autoload -Uz compinit && compinit' >> ~/.zshrc# You will need to source your ~/.zshrc or start a new shell for this setup to take effect.source ~/.zshrc
# Load completions for current sessionnscale completion fish | source# To load completions for every session, execute once:mkdir -p ~/.config/fish/completionsnscale completion fish > ~/.config/fish/completions/nscale.fish
# Load completions for current sessionnscale completion powershell | Out-String | Invoke-Expression# To load completions for every new session, run:nscale completion powershell > nscale.ps1# and source this file from your PowerShell profile.