maton login

maton login [flags]

Login to your Maton account to set up the CLI. By default, this opens your browser to the Maton login page. After signing in, copy your API key and paste it back into the terminal. Use –interactive when you don’t want to launch a browser (for example, on a headless host). Use –oauth to sign in with your browser instead of an API key: the CLI then holds a short-lived access token that it renews automatically, so no long-lived key is stored on the machine.

Available commands

Options

--insecure-storage
Save the API key in plain text instead of the OS keyring
-i, --interactive
Skip launching the browser; only prompt for an API key
--oauth
Sign in through the browser and store a renewable token instead of an API key

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

# Open the Maton login page and paste in an API key
$ maton login

# Skip the browser launch and just paste an API key
$ maton login --interactive

# Sign in with your browser; no API key to copy
$ maton login --oauth

See also