H
Hostess
CLI Commands

hostess deployments

List, inspect, and remove deployments for your Hostess projects.

Description

Manage deployments for your Hostess projects. The deployments command group lets you list all deployments, inspect detailed status of a specific deployment, and remove deployments along with their resources.

Aliases

AliasFull Command
hostess dephostess deployments
hostess lshostess deployments list
hostess listhostess deployments list
hostess inspecthostess deployments inspect
hostess rmhostess deployments remove
hostess deletehostess deployments remove

deployments list

List deployments for a project, optionally filtered by environment.

Usage

Terminal
hostess deployments list [flags]

Flags

FlagShortTypeDefaultDescription
--project-pstringFrom hostess.ymlProject name
--env-estringAll environmentsFilter by environment name
--all-aboolfalseShow all projects in the organization
--formatstringtableOutput format (table or json)

Examples

Terminal
# List deployments for the current project
hostess deployments list
PROJECT              ENV            STATUS     COMMIT     CREATED      ID
──────────────────────────────────────────────────────────────────────────────────────────
my-app               production     Running    a1b2c3d    2h ago       dep_abc123
my-app               production     Running    f4e5d6c    1d ago       dep_def456
my-app               staging        Failed     9g8h7i6    3d ago       dep_ghi789
Terminal
# Using the alias
hostess ls

# Using the nested alias
hostess deployments ls

# Filter by environment
hostess ls --env production

# Show all projects across the organization
hostess ls --all

# Output as JSON
hostess ls --format json

deployments inspect

Show detailed information about a specific deployment, including service status, URLs, and resources.

Usage

Terminal
hostess deployments inspect [deployment-id] [flags]

If no deployment ID is provided, the command inspects the latest deployment for the project.

Flags

FlagShortTypeDefaultDescription
--project-pstringFrom hostess.ymlProject name
--env-estringLatest deployment if omittedSelect the latest deployment in an environment

Examples

Terminal
# Inspect the latest deployment
hostess deployments inspect
Deployment: dep_abc123
Status:     Running
Branch:     main
Commit:     a1b2c3d
Created:    2h ago
Completed:  2h ago

Services:
  NAME             TYPE       STATUS     URL
  ──────────────────────────────────────────────────────────────────────
  frontend         nextjs     Running    https://my-app-frontend-k7xm9p2q.hostess.run
  api              fastapi    Running    https://my-app-api-a3x9d2m1.hostess.run
  database         postgres   Running    (private)

External URLs:
  frontend:        https://my-app-frontend-k7xm9p2q.hostess.run
  api:             https://my-app-api-a3x9d2m1.hostess.run

Private Services:
  database:        postgres — use: hostess connect database
Terminal
# Inspect a specific deployment
hostess deployments inspect dep_abc123

# Using the alias
hostess inspect

# Inspect the latest staging deployment
hostess inspect --env staging

deployments remove

Remove a deployment and clean up all associated resources.

Usage

Terminal
hostess deployments remove [deployment-id] [flags]

If no deployment ID is provided, the command targets the latest deployment for the project.

Flags

FlagShortTypeDefaultDescription
--project-pstringFrom hostess.ymlProject name
--env-estringLatest deployment if omittedSelect the latest deployment in an environment
--force-fboolfalseSkip confirmation prompt

Examples

Terminal
# Remove a specific deployment (with confirmation prompt)
hostess deployments remove dep_abc123
This will delete deployment dep_abc123 and all its resources.
  Status:   success
  Services: frontend, api, database

Are you sure?
Type 'yes' to confirm: yes
Removing deployment dep_abc123...
✓ Deployment dep_abc123 removed
Terminal
# Remove without confirmation
hostess rm dep_abc123 --force

# Using nested aliases
hostess deployments rm dep_abc123 --force
hostess deployments delete dep_abc123 --force

# Remove the latest deployment
hostess rm --force

# Remove the latest staging deployment
hostess delete --env staging --force

Removing a deployment deletes all associated services and resources. For database services with retention: permanent, data is preserved. For retention: ephemeral, data is permanently deleted.