no organization: turso CLI: no organization
The CLI has no organization to act in: not logged in, no default org set, or the account belongs to none.
- 오류
no organization
의미
The turso CLI acts inside one organization at a time. turso auth login picks a default interactively; automation runs without prompts (the --headless flag) and relies on its token's organization context. When the CLI has no organization to act in, commands that need one fail with this error. It is CLI state, not a rejected token: a bad token fails with an authentication error instead.
일반적인 원인
- Not logged in with
turso auth login. - No default organization selected for the account.
- An automation run whose token does not carry the organization context the command needs.
Find the cause
`turso auth whoami` shows the account the CLI is using, `turso org list` shows the organizations that account can see, and `turso org switch <org>` sets the active one. If the list is empty, the account belongs to no organization and one must be granted.
해결 방법
-
Log in and set an organization:
turso auth login turso org list turso org switch <org>
Other ways to handle it
For CI, run with the --headless flag and an API token minted for the organization the job acts on (turso auth api-tokens mint <name> --org <org>), so no interactive login or default organization is needed.
안전하게 재현하세요
Needs CLI state with no usable organization, which is CI territory: an automation run whose token carries no organization context, or a login on an account with no organization selected yet. No honest offline repro; the error comes from the platform's answer about the account.
질문
How do I use the turso CLI in CI without an interactive login?
Run with the --headless flag and authenticate with an API token minted for the organization the job acts on: turso auth api-tokens mint <name> --org <org>. If the account can see several organizations, set the active one explicitly.
Is 'no organization' the same as a bad token?
No. The token can be perfectly valid while the CLI still lacks an organization to act in. A rejected token produces an authentication failure instead; turso auth whoami separates the two.
관련 오류
401 Unauthorized401 Unauthorized: bad or missing auth tokenauth token expiredAuth token expireddatabase not foundturso CLI: database not found
More authentication and tokens errors
코드와 메시지 텍스트의 출처는 다음과 같습니다 libSQL / Turso documentation. 전체 목록은 libSQL error list 또는 모든 데이터베이스 오류 검색.
Work on libSQL in SQLly
A native SQL client for macOS, Windows and Linux with schema-aware IntelliSense, guardrails for risky statements and clear error messages, for libSQL and the other databases you use.
이 페이지의 텍스트와 데이터: CC BY 4.0, 출처: SQLly (sqlly.app). 코드와 SQL 스니펫: MIT. 라이선스 세부 정보 인용된 오류 메시지 텍스트의 권리는 해당 데이터베이스 공급업체에 있습니다.