Skip to main content

CLI Reference

workspaces-cli (also aliased as ws-cli) from @burdenoff/workspaces-cli. The primary command-line interface for Burdenoff Workspaces platform operations.

Install​

npm install -g @burdenoff/workspaces-cli
# or
bun install -g @burdenoff/workspaces-cli

Environment selection​

The CLI defaults to production endpoints. Select a different environment via BURDENOFF_ENV:

VariableValuesDefaultDescription
BURDENOFF_ENVlocal | alpha | prodprodSelects the default GraphQL gateway endpoints and OIDC issuer.

Examples:

# Production (default)
ws-cli auth login

# Alpha
BURDENOFF_ENV=alpha ws-cli auth login

# Local dev
BURDENOFF_ENV=local ws-cli auth login

When BURDENOFF_ENV is unset or invalid, the CLI defaults to prod.

Default endpoints by environment​

EnvironmentWorkspace gatewayGlobal gateway
prod (default)https://graphqlworkspaces.burdenoff.com/workspaces/graphqlhttps://graphql.burdenoff.com/global/graphql
alphahttps://alphagraphqlworkspaces.burdenoff.com/workspaces/graphqlhttps://alphagraphql.burdenoff.com/global/graphql
localhttp://localhost:4003/workspaces/graphqlhttp://localhost:4000/global/graphql

Override individual endpoints permanently:

ws-cli config set workspaceEndpoint https://custom.example/workspaces/graphql
ws-cli config set globalEndpoint https://custom.example/global/graphql
ws-cli config set oidcIssuer https://custom.auth.example

Top-level command groups​

GroupWhat
authAuthentication (login, logout, status, token, refresh)
workspaceWorkspace context (list, current, set)
projectProject management (list, create, update, archive, delete)
conversationConversations (channels, messages, threads)
fileFiles (upload, download, list, delete)
tagTags (create, list, assign, remove)
groupGroups and teams (list, create, update, delete)
rbacRBAC operations (check, list roles, list permissions)
schedulerScheduler jobs (create, list, cancel, monitor)
webhookWebhooks (create, list, update, delete, deliveries)
billingBilling (plans, invoices, usage)
configCLI local settings

Common examples​

# Auth
ws-cli auth login
ws-cli auth status
ws-cli auth token --workspace

# Workspace
ws-cli workspace list
ws-cli workspace set <id>

# Projects
ws-cli project list --workspace <id>
ws-cli project create --name "Q3 Roadmap" --workspace <id>
ws-cli project update <id> --name "Q3 Roadmap v2"

# Conversations
ws-cli conversation channels list
ws-cli conversation send --channel <id> --body "Hello team"

# Files
ws-cli file upload ./report.pdf --project <id>
ws-cli file list --project <id>

# Tags
ws-cli tag create --name urgent --color #ff0000
ws-cli tag assign <tagId> --resource <id> --type PROJECT

# RBAC
ws-cli rbac check --user <id> --action read --resource PROJECT:<id>

# Scheduler
ws-cli scheduler create --name "Daily backup" --cron "0 2 * * *" --jobType backup

# Webhooks
ws-cli webhook create --name slack --url https://hooks.slack.com/... --events "file.uploaded,project.created"

Each command's full flag list is in ws-cli <group> <subcommand> --help.

Development​

git clone https://github.com/algoshred/workspaces-cli.git
cd workspaces-cli
bun install
bun run dev # Run in development mode
bun run build # Production build
bun run test # Run tests
bun run sanity # All checks (format, lint, type-check, test, build)

Source​

  • Repository: github.com/algoshred/workspaces-cli
  • Package: @burdenoff/workspaces-cli on npm

Next steps​