@urbackend/cli
v0.2.0
Published
Official CLI for urBackend — manage projects, schemas, and more from your terminal
Downloads
544
Readme
@urbackend/cli
The official CLI for urBackend. Manage your projects, schemas, and more directly from your terminal.
Installation
You can run the CLI directly using npx:
npx @urbackend/cli <command>Or install it globally:
npm install -g @urbackend/cli(Note: The global binary is exposed as ub)
Authentication
Before using the CLI, you must authenticate using a Personal Access Token (PAT). You can generate a PAT in your urBackend Dashboard under your account settings.
ub login
Authenticate your machine with urBackend using your Personal Access Token.
ub loginub whoami
Displays the currently authenticated developer profile.
ub whoamiub logout
Removes the stored credentials from your local machine.
ub logoutProjects
Manage and navigate your urBackend projects.
ub project list (alias: ls)
List all projects you have access to.
ub project listub project use [projectIdOrName]
Set a project as the "active" project for subsequent CLI commands, so you don't need to specify the project ID every time.
ub project use "My Project"ub project info [projectId]
Show detailed information about the active project or a specific project.
ub project infoCollections
Manage your database collections within the active project.
ub collection list (alias: col ls)
List all collections inside the active project.
ub collection listOptions:
-p, --project <projectId>: Target a specific project ID instead of the active one.
ub collection delete <collectionName> (alias: col rm)
Delete a collection and all of its associated data. Use with caution.
ub collection delete "users"Options:
-f, --force: Skip the confirmation prompt.-p, --project <projectId>: Target a specific project ID.
Utilities
ub status
Show your account usage and recent API activity.
ub statusub doctor
Run diagnostic checks on your CLI setup and network connectivity to the urBackend servers.
ub doctorOptions:
--json: Output the diagnostic results as a JSON string (useful for CI environments or AI agents).
License
MIT
