- A user account offers personalized access and accountability. It can be used when you, as a human user, need to manage and interact with resources.
- A service account automates the interaction of applications and services with resources.
How to set up the CLI for a user account
Choose the non-interactive flow to specify the configuration parameters in advance, or the interactive flow to enter them step by step.- 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:
How to set up the CLI for a service account
Before you begin, create a service account. You can do it with a user account or another service account within a group that has theadmin role within your tenant; for example, the default admins group. You can check the group’s role in the Administration → IAM section of the web console.
Choose the non-interactive flow to specify the configuration parameters in advance, or the interactive flow to enter them step by step.
- Non-interactive flow
- Interactive flow
- On the Service accounts page in the web console, copy the service account ID from the ID column for the service account that you want to use. Then select the service account, click Authorized keys and copy the public key ID from the ID column.
- Open your terminal.
-
Save the service account details to environment variables:
-
Create a name for your profile and save it to an environment variable:
For example,
gpu-monitoring-sa. -
Get the project ID and save it to an environment variable:
-
Create the CLI profile:
Example output:
-
Check that your new profile has been created and set as the default one:
Example output: