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
  • What it does
  • When to use it
Question? Give us feedback →Edit this page
CLIdock logout

dock logout

Remove stored CLI credentials from this machine.

Usage

dock logout

What it does

dock logout clears the saved token, user email, user name, and active context from the local CLI config.

When to use it

  • You are switching accounts.
  • You are done using DockHosting on a shared machine.
  • A token is stale and you want a clean login.
dock logindock whoami

Copyright 2026 DockHosting dockhosting.dev contact@dockhosting.dev