What problem does it solve?
Developers working on Backend.AI need a reliable way to test and verify REST API endpoints and manage cluster resources, but the v2 ./bai CLI has a large entity-command surface that is easy to misuse or confuse with the legacy v1 CLI. This Skill provides the authoritative entity-command reference, login/config setup, and testing workflow so commands are correct on the first attempt.
Core Features & Use Cases
- Entity-Command Reference: Complete mapping of every entity (domain, user, session, deployment, vfolder, rbac, etc.) to its user/admin/my commands, preventing fabricated or guessed CLI invocations.
- Login & Configuration Guidance: Covers session-based webserver auth and direct API (HMAC) auth, including non-interactive login for CI environments.
- Testing Workflow: Step-by-step verification procedure after server code changes, including permission-boundary checks (403 tests), smoke test scripts, and raw GraphQL fallback via
./bai gql.
- Use Case: After modifying the session API, run
./bai admin session search --limit 1 to confirm connectivity, then log in as a regular user to verify admin-only commands correctly return 403.
Quick Start
Ask the AI to verify a Backend.AI API endpoint by running the appropriate ./bai entity command from the reference, such as searching admin domains with a limit of one.