Command line
Sign in and check your identity
Section titled “Sign in and check your identity”Sign in and check that the CLI selected the right account:
bsln loginbsln get identity --jsonUse bsln logout to remove the selected login. See Quickstart for the browser approval step.
Connection settings
Section titled “Connection settings”Set BSLN_URL and BSLN_TOKEN together for automation. An environment token bypasses saved directory bindings. API commands reject that token when --profile or BSLN_PROFILE is also set. A saved login is bound to the API origin used at sign-in.
Profiles for accounts and workspaces
Section titled “Profiles for accounts and workspaces”bsln --profile work login saves a named login. In a project directory, bsln activate profile work selects it for that directory and its descendants. Selection order is --profile, BSLN_PROFILE, the nearest directory binding, then the default login. Use bsln list profile to see saved profiles and bsln deactivate profile to remove a binding.
Output and pagination
Section titled “Output and pagination”Add --debug before the command for a traceback. For commands that support --json, the result goes to stdout and errors go to stderr. Paginated list commands default to 100 rows. Use --limit N with a value from 1 to 500 or --all to fetch every page.
API tokens
Section titled “API tokens”bsln create token --name monitor --scopes read --ttl-days 30 requests a read-only token. The issued token can carry only scopes held by the caller and can expire earlier than requested. Save the value when it is printed. bsln list token shows IDs, scopes and expiry, and bsln revoke token TOKEN_ID revokes the selected token.