Account CLI Reference
The Shorebird CLI provides several commands to help you manage your authentication state, inspect your account details, and list your apps and organizations directly from the terminal.
Authentication Commands
Section titled “Authentication Commands”To authenticate with Shorebird on your machine, run:
This command will prompt you to visit a URL in your browser to complete the
OAuth login process. Once authenticated, your session credentials are saved
securely on your machine, allowing you to use shorebird commands without
needing to re-authenticate.
Logout
Section titled “Logout”To log out of the current Shorebird user session and remove stored credentials from your machine, run:
Account Management Commands
Section titled “Account Management Commands”The shorebird account command provides several subcommands to inspect your
account details, apps, and organizations.
Who Am I
Section titled “Who Am I”To see the currently authenticated user’s details, run:
Example output:
This command is useful for verifying which account you are logged into and checking your current billing plan and patch overage limit.
List Apps
Section titled “List Apps”To list all the Shorebird apps that your current account has access to, run:
Example output:
The output displays the App ID, display name, latest release version, and latest
patch number (with - indicating no release or patch has been published yet).
List Organizations
Section titled “List Organizations”To list all the organizations you belong to, run:
Example output:
This output displays the Organization ID, name, organization type (personal or
team), and your membership role (owner, admin, or developer).
JSON Output for Automation
Section titled “JSON Output for Automation”All shorebird account subcommands support the --json flag, making them easy
to integrate into scripts and automation workflows.
When using --json, the CLI will output a structured JSON response instead of
human-readable text.