DockHosting Docs
GitHubGitHub
  • Introduction
  • Quick Start
    • Create an Account
    • Create a Project
    • Add a Database
    • Add a Domain
    • Use the CLI
  • Core Concepts
  • Deploying Apps
    • Deploy Lifecycle
    • Frameworks
    • Environment Variables
    • Logs
    • Scale to Zero
    • GitHub Deploys
    • Dockerfile Deploys
  • Databases
    • Engines
    • Create a Database
    • Connect
    • Public Access
    • Firewall
    • Backups
    • Admin Panels
    • Resize
  • Domains
    • Free Subdomains
    • Custom Domains
    • DNS Records
    • SSL
    • Troubleshooting
  • Billing & Tokens
    • Tokens
    • Costs
    • Top Up
    • Auto Top-Up
    • Low Balance
  • CLI
    • dock login
    • dock logout
    • dock whoami
    • dock help
    • dock deploy
    • dock link
    • dock ls
    • dock info
    • dock open
    • dock logs
    • dock start
    • dock stop
    • dock restart
    • dock rm
    • dock env
    • dock run
    • dock shell
    • dock tokens
    • dock context
    • dock update
    • dock completion
    • dock db
  • Reference
  • Troubleshooting
  • Contact

On This Page

  • Commands
  • List contexts
  • Switch context
Question? Give us feedback →Edit this page
CLIdock context

dock context

Switch between your personal space and workspaces.

Commands

dock context ls
dock context use <name|id>

dock ctx is an alias for dock context.

List contexts

dock context ls

Shows every personal/workspace context available to your account, including:

  • active marker
  • name
  • type
  • role
  • context ID

Switch context

dock context use personal
dock context use team-slug
dock context use ctx_123

After switching, new CLI commands run against that context.

dock tokensdock update

Copyright 2026 DockHosting dockhosting.dev contact@dockhosting.dev