Install the Nebius AI Cloud CLI
The old installer script (https://storage.ai.nebius.cloud/nebius/install.sh) has been deprecated. If you got an error trying to update the Nebius AI Cloud CLI, please reinstall it using the new script: .
-
Open your terminal and run the command:
-
Restart your terminal or run
exec -l $SHELLto complete the installation. -
Make sure that the installation is successful. Run:
In the output, you’ll see the version number of your Nebius AI Cloud CLI.
Configure the Nebius AI Cloud CLI
-
Copy your project ID from the web console Project settings and save it to an environment variable:
-
Run the following command:
-
Set up the new profile:
-
Using arrow keys, select Create a new profile and press
Enter. -
Specify the profile name and press
Enter. -
Keep the default value for Select api endpoint (
api.nebius.cloud) and pressEnter. -
Under Select authorization type, keep
federationand pressEnter. -
Keep the default value for Select federation endpoint (
auth.nebius.com) and pressEnter. -
In the browser tab that opens, log into the Nebius AI Cloud web console if prompted. After logging in (or if you have already been logged in), you will see the following message:
-
Close the browser tab and go back to your terminal window. You’ll see the message:
-
Using arrow keys, select Create a new profile and press
-
Check that your new profile has been created and set as the default one:
You should see the following output: