Mass Config
mass config​
Manage CLI configuration profiles
Synopsis​
Manage Configuration Profiles
A profile holds the organization, credential, and API URL used to talk to Massdriver. Profiles live in ~/.config/massdriver/config.yaml (or $XDG_CONFIG_HOME/massdriver/config.yaml), and these commands read and write that file for you.
Use separate profiles to work across organizations or against a self-hosted installation without re-editing the file each time.
Choosing a profile​
A profile is selected in this order, highest precedence first:
- The
--profileflag - The
MASSDRIVER_PROFILEenvironment variable - The
current_profilekey in the config file, set bymass config use - The profile named
default
The first three name a profile explicitly, so a name that isn't in the file is an error rather than a silent fallback. The default fallback may be absent — that is how credentials supplied entirely through environment variables resolve.
Getting started​
shell
mass config add default --org acme --api-key mds_xxx
mass config list
Options​
-h, --help help for config
Options inherited from parent commands​
--profile string Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)
SEE ALSO​
- mass - Massdriver Cloud CLI
- mass config add - Add a profile
- mass config get - Show a profile's settings (defaults to the active profile)
- mass config list - List configured profiles
- mass config path - Print the path to the configuration file
- mass config remove - Remove a profile
- mass config set - Update settings on an existing profile
- mass config use - Set the active profile