Skip to main content
Global options are commonly available to use with multiple Openlayer CLI commands.

API key

The --api-key option can be used to provide an Openlayer API key when running Openlayer CLI commands. For example, to push without having to run openlayer login:

Debug

The --debug option can be used to provide a more verbose output when running Openlayer CLI commands.

Profile name

The --profile-name option can be used to specify the profile name to read from for config (default "default").

Environment variables

The CLI also reads configuration from environment variables, which is useful in CI/CD or other non-interactive environments where openlayer login and openlayer link (both interactive) can’t be used:

Output mode

The --output-mode option controls how the CLI formats its output. It accepts terminal (the default, with colors and interactive progress) or ci (plain output suited for CI logs).

Version

The --version option can be used to verify the version of Openlayer CLI being used.