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
landbase-cli account
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
landbase-cli account list
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
landbase-cli account set
Multiple accounts available — pick one:
  [1] Acme Corp (39)
  [2] Beta LLC (449)
  [3] Globex Inc (722)
  [4] Initech (962)
Enter 1-4:
To target a different account for a single command without changing the saved one, use the --account=<id> flag instead (see below).
Flags
FlagDefaultDescription
--account=<id>Override the active account for a single command, without persisting it
--verbosePrint request/response details to stderr
Examples
# Print the active account (no network call)
landbase-cli account

# List accessible accounts
landbase-cli account list

# Switch account via the interactive picker
landbase-cli account set

# Use a different account for one command only (no persistence)
landbase-cli onboarding get --account=4821