Authentication
Manage OAuth authentication with the CLI.
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 loginDescription
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 successfulauth logout
Remove stored authentication tokens.
memberstack auth logoutDescription
Revokes the current refresh token (best-effort) and deletes the local token file at ~/.memberstack/auth.json.
Example
$ memberstack auth logout
✔ Logged out successfullyauth status
Show current authentication status.
memberstack auth statusDescription
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: Yesauth update-profile
Update your profile (first name, last name, email).
memberstack auth update-profile [options]Options
| Option | Description |
|---|---|
--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.comFAQ
How is this guide?
Last updated on