Skip to main content
View the active account, list every account you can access, and switch between them. The active account scopes account-level commands such as onboarding and contacts-import.
account is a platform-mode command (platform mode is the default). Run landbase-cli auth login first — account list and account set call the platform to read your memberships. See platform mode vs. legacy mode.

account

Print the currently active account as JSON. This reads the stored config only — no network call — so it is safe to run even with an expired session. Usage
Prints { accountId, source }, where source is "config" when an account is set or "none" when it isn’t. See output schemas.

account list

List every account the current user can access, marking which one is active. Usage
Prints { accounts: [{ id, name, role, current }] }. current reflects the account the CLI would use right now. See output schemas.

account set

Set the active account and persist it to ~/.landbase/platform.json. Run it with no arguments — the CLI lists the accounts you can access and prompts you to pick one. Your choice is saved, so you only do this once per machine. Usage
To target a different account for a single command without changing the saved one, use the --account=<id> flag instead (see below).
Flags Examples