login

Use credentials to generate a config file in `ionosctl cfg location`, or use '--example' to generate a sample endpoints YAML config

Usage

ionosctl config login [flags]

Aliases

For config command:

[cfg]

Description

Generate a YAML file aggregating all product endpoint information at 'ionosctl cfg location' using the public OpenAPI index.

If using '--example', this command prints the config to stdout without any authentication step.

You can filter by version (--filter-version), whitelist (--whitelist) or blacklist (--blacklist) specific APIs, and customize the names of the APIs in the config file using --custom-names.

There are three ways you can authenticate with the IONOS Cloud APIs:

  1. Interactive mode: Prompts for username and password, and generates a token that will be saved in the config file.

  2. Use the '--user' and '--password' flags: Used to generate a token that will be saved in the config file.

  3. Use the '--token' flag: Provide an authentication token. Notes:

  • If using '--example', the authentication step is skipped

Options

Examples

Last updated