Configure the Mason CLI with an API Key
Some commands in the Mason CLI require a permissioned API Key. This guide will show you how to supply an API key to the Mason CLI.
There are three ways you can configure an API key with the Mason CLI
the following options are checked on every Mason CLI command execution in the order they are listed
Supply your API key on every command execution
mason --api-key [APIKEY] ...
Supply your API key through an environment variable
Set your API key once and persist it across CLI sessions
mason login --api-key [APIKEY]
- Contact us at email@example.com