Steps
Install the Nebius AI Cloud CLI
The Nebius AI Cloud CLI is available for both Ubuntu and macOS.-
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:
In the output, you’ll see the version of your Nebius AI Cloud CLI.
Configure the Nebius AI Cloud CLI
After installation, configure a profile for the CLI. Use one of the supported account types:- A user account to manage resources from your side, as a human user.
- A service account to authenticate resources and automate interaction with applications.
- Non-interactive flow
- Interactive flow
-
Create a name for the new profile in the Nebius AI Cloud CLI and save it to an environment variable:
-
Get the project ID and save it to an environment variable:
-
Create the CLI profile:
If you have access to multiple tenants, you can specify the tenant that you want to use with this profile in the
--tenant-idparameter. If you are added to someone else’s tenant and know the ID of its federation, you can specify it either in the--federation-idparameter, or when logging in to the Nebius AI Cloud web console after running the command. -
On the browser tab that opens, log in to the 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 will see the following message:
-
Check that your new profile has been created and set as the default one:
You should see the following output:
(Optional) Set up command autocompletion
During setup, your shell will enable Nebius AI Cloud CLI autocompletion by default. If it doesn’t happen, use one of the solutions below:- Permanent solution
- Single-session solution
Run the following command: