Steps
Install the Nebius AI Cloud CLI
The Nebius AI Cloud CLI is available for both Ubuntu and macOS.-
Open your terminal and install the CLI by using one of the following methods:
- Installation script
- Homebrew (macOS)
Restart your terminal or runexec -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.
Example output:
-
Check that your new profile has been created and set as the default one:
Example output:
(Optional) Set up command autocompletion
The installation script enables Nebius AI Cloud CLI autocompletion in your shell by default. If you installed the CLI with Homebrew or autocompletion isn’t enabled, use one of the solutions below:- Permanent solution
- Single-session solution
Run the following command: