Skip to main content

Manage Multiple Accounts

Use kubectl-style contexts to switch between different servers or accounts.

CLI

Login to multiple servers

# Personal server
ud login --context personal --api-url https://ud.home.com

# Work server
ud login --context work --api-url https://ud.company.com

List contexts

ud config get-contexts

Switch context

ud config use-context work

Show current context

ud config current-context

One-off command with a different context

UD_CONTEXT=work ud get task

Rename a context

ud config rename-context personal home

Delete a context

ud config delete-context old-server

Use API key (for CI/CD)

ud config set-context ci --api-url https://ud.company.com --api-key your-api-key