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

  • Usage
  • Output
  • Example
Question? Give us feedback →Edit this page
CLIdock whoami

dock whoami

Show the account and context the CLI is using.

Usage

dock whoami

Output

The command prints:

  • email
  • user ID
  • active context type
  • active context role

Example

dock whoami

Use this after dock login or dock context use to make sure commands will run against the right account or workspace.

dock logoutdock help

Copyright 2026 DockHosting dockhosting.dev contact@dockhosting.dev