Memberstack CLI

Authentication

Manage OAuth authentication with the CLI.

View Markdown
memberstack auth <subcommand> [options]

The CLI supports OAuth authentication with your Memberstack account.

auth login

Authenticate with Memberstack via the browser-based OAuth flow.

memberstack auth login

Description

Opens your default browser to the Memberstack authorization page.

Tokens are stored locally at ~/.memberstack/auth.json with restricted file permissions. The access token is used for authenticated requests directly to the Memberstack API only, your credentials are never sent to third-party services.

Example

$ memberstack auth login
Opening browser for authentication...
 Authentication successful

auth logout

Remove stored authentication tokens.

memberstack auth logout

Description

Revokes the current refresh token (best-effort) and deletes the local token file at ~/.memberstack/auth.json.

Example

$ memberstack auth logout
 Logged out successfully

auth status

Show current authentication status.

memberstack auth status

Description

Displays whether you are currently authenticated, your app ID, token expiration time, refresh token availability, and token validity.

Example

$ memberstack auth status
Authentication Status
  Status:         Logged in
  App ID:         app_abc123
  Access Token:   Expires in 45 minutes
  Refresh Token:  Available
  Token Valid:    Yes

auth update-profile

Update your profile (first name, last name, email).

memberstack auth update-profile [options]

Options

OptionDescription
--first-name <name>Update first name
--last-name <name>Update last name
--email <email>Update email address

Examples

memberstack auth update-profile --first-name Jane
memberstack auth update-profile --first-name Jane --last-name Doe --email jane@example.com

FAQ

How is this guide?

Last updated on

On this page