Skip to content
Platform

Sign in and check that the CLI selected the right account:

bsln login
bsln get identity --json

Use bsln logout to remove the selected login. See Quickstart for the browser approval step.

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.

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.

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.

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.