Skip to Content
ReferenceCLI Referencemyco auth

myco auth

Authentication commands.

myco auth login

Authenticate with Myco. Opens your browser for sign-in.

myco auth login

Arguments: None

Flags: None

Behavior:

  1. Starts a local HTTP server to receive the callback
  2. Opens your browser to the Myco sign-in page
  3. After sign-in, saves your API key to your shell profile (~/.zshrc or ~/.bashrc)
  4. Sets the MYCO_API_KEY environment variable

myco auth logout

Remove stored credentials.

myco auth logout

Arguments: None

Flags: None

Behavior: Removes the MYCO_API_KEY export line from your shell profile.