Creating a profile
There are two ways to create a profile:
-
Creating an empty profile and adding parameters manually.
This creates and activates an empty profile: you have to add all the parameters separately.
-
Wizard-based profile creation with basic parameters.
The CLI suggests setting the basic profile parameters step-by-step. You can use this method to redefine the parameters of an existing profile. This method doesn't work for service accounts.
Creating an empty profile and adding parameters manually
Create a profile with the test
name:
-
Run this command:
ncp config profile create test
Result:
Profile 'test' created and activated
-
Add the necessary profile parameters, such as a folder:
ncp config set folder-id <folder ID>
View the full list of profile parameters and learn how to manage them.
You can view an example of this type of profile when getting started.
Wizard-based profile creation with basic parameters
Wizard-based profile creation is available:
-
For users with a Google account:
ncp init \ --endpoint api.ai.nebius.cloud:443 \ --federation-endpoint console.nebius.ai \ --federation-id google
For more information, see Authenticating as a user.
-
For federated users:
ncp init \ --endpoint api.ai.nebius.cloud:443 \ --federation-endpoint console.nebius.ai \ --federation-id <federation ID>
For more information, see Authenticating as a federated user.
You can't run the ncp init
command without the --endpoint
, --federation-endpoint
, and --federation-id
parameters.