Closed beta — join the waiting list

CLI Reference

Complete reference for the Hatch command-line interface.

hatch deploy

Deploy your application to Hatch. Creates the app if it doesn't exist.

hatch deploy [--name <app-name>] [--domain <domain>]

Output:
  Deploying to Hatch...
  Deployed to Hatch!
  App URL: https://myapp.gethatch.eu

  Next steps:
    hatch info     - View app details
    hatch logs     - View app logs
    hatch open     - Open app in browser

hatch info

View the details of an application.

hatch info <slug>

Output:
  myapp
  Slug:    myapp
  Status:  running
  URL:     https://myapp.gethatch.eu
  Region:  eu-west
  Created: 2025-01-15 10:30:00
  Updated: 2025-01-15 12:45:00

hatch logs

Stream or view deployment logs.

hatch logs [--project <name>] [options]

Options:
  --follow, -f          Stream logs in real-time
  --lines <n>           Number of lines to show (default: 100)
  --since <duration>    Show logs since duration (e.g. 1h, 30m)

hatch env

Manage environment variables.

hatch env set <KEY=VALUE> [KEY=VALUE...] --project <name>
hatch env list --project <name>
hatch env remove <KEY> --project <name>

hatch domains

Manage custom domains.

hatch domains add <domain> --project <name>
hatch domains list --project <name>
hatch domains remove <domain> --project <name>

hatch login / logout

Manage authentication.

# Log in via GitHub OAuth
hatch login

# Log out and clear local credentials
hatch logout

# Check if logged in (lists your apps)
hatch apps
Hatch mascot