# megamono auth

Syntax, options, and usage for the auth command.


The public hosted Megamono service has not launched. The published CLI includes authentication commands for use with a configured service, but signing in at the default public service is not available yet. Creating, adopting, and checking a workspace locally does not require sign-in.

## Service command reference

These commands apply when a compatible hosted service is available and configured:

```sh
megamono auth status
megamono auth login
megamono auth logout
```

The login flow authorizes the CLI. Do not share stored credentials or include them in support reports.

## Command options

Use the help below for exact syntax and options. You can also run `megamono auth --help` in your terminal.

```text
Usage: megamono auth <login|status|logout> [options]

Options:
  --service-url=<url>  Select the hosted service (default: https://app.megamono.com)
  --account=<id|slug>  Select an account immediately after login

Login opens a browser, uses S256 PKCE with a loopback callback, and stores
rotating credentials in the user configuration directory. Repository commands
continue to work without a hosted login.
```

[All CLI commands](/docs/cli)
