Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Command line interface
  • Getting started with the CLI
  • Step-by-step instructions
    • All instructions
    • CLI installation
    • Authentication
      • Authenticating as a user
      • Authenticating as a service account
      • Authenticating as a federated user
    • Profile management
      • Creating a profile
      • Managing profile parameters
      • Getting profile information
      • Activating a profile
      • Deleting a profile
  • Concepts
    • Running commands
    • CLI configuration
    • Synchronous and asynchronous command execution modes
  • CLI releases
  • Troubleshooting
  • CLI reference
    • Overview
    • YC CLI management
      • yc operation
      • yc config
      • yc components
    • Service management
      • yc iam
      • yc resource-manager
      • yc compute
      • yc vpc
      • yc managed-clickhouse
      • yc managed-mongodb
      • yc managed-postgresql
  1. Step-by-step instructions
  2. Authentication
  3. Authenticating as a user

Authenticating as a user

    You can authenticate in the profile creation wizard using the yc init command or following these steps:

    1. Get an OAuth token.

    2. Create a profile.

    3. Specify your OAuth token in the token parameter:

      $ yc config set token <OAuth token>
      

    The OAuth token is saved in the profile configuration for automatically authenticating.

    Language
    Careers
    Privacy policy
    Terms of use
    © 2021 Yandex.Cloud LLC