Appearance
metaplay auth login [AUTH_PROVIDER] [flags]
Sign in with a browser, on this machine or another (--no-browser)
Appearance
Sign in with a browser, on this machine or another (--no-browser)
metaplay auth login [AUTH_PROVIDER] [flags] Login to your authentication provider using the browser.
The default auth provider is 'metaplay'. If you have multiple auth providers configured in your 'metaplay-project.yaml', you can specify the name of the provider you want to use with the argument AUTH_PROVIDER.
By default, the login opens a browser on this machine and receives the result on a local port. When the browser is on another machine, such as when the CLI runs over SSH, in a container or under a coding agent, use --no-browser instead. It prints a URL to open in any browser, and the page shown after signing in gives a code to paste back. In a terminal, the CLI waits for the code. Otherwise, finish the login with --code within 30 minutes.
Coding agents: run 'auth login --no-browser', show the user the URL, and ask them for the code the page shows. Then run 'auth login --code' with it. Only the code from the most recent URL works, and only once. Treat it like a password: never write it to a file.
Expected arguments:
# Sign in with a browser on this machine.
metaplay auth login
# Sign in with a browser on another machine, pasting the code when asked.
metaplay auth login --no-browser
# Finish a --no-browser login started without a terminal, such as by an agent.
metaplay auth login --code 'CODE'--code <string>: Finish a login started with --no-browser, with the code the sign-in page showed--no-browser: Sign in with a browser on another machine, by pasting the code it shows--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]