HubDocs

CLI reference / hub app <name>

hub app <name> instance

Manage the instances of the app.

View Markdown

Usage

CLI
hub app <name> instance [options] [command]

Arguments

ArgumentDescription
<name>The app, or app/instance for an instance other than prod, such as my-app/staging.

hub app <name> instance list

List every instance of the app.

Usage

CLI
hub app <name> instance list [options]

Options

OptionDescription
--jsonReturn a structured result for scripts and agents.

hub app <name> instance remove

Delete one instance; ask separately before deleting its data.

Usage

CLI
hub app <name> instance remove [options] <instance>

Arguments

ArgumentDescription
<instance>Instance name, including prod.

Options

OptionDescription
--yesSkip confirmation and keep data.
--delete-dataAlso delete volumes and skip confirmation.

hub app <name> instance create

Create another instance of the app.

Usage

CLI
hub app <name> instance create [options] <instance>

Arguments

ArgumentDescription
<instance>Instance name, such as staging.

Options

OptionDescription
--jsonReturn a structured result for scripts and agents.

Examples

CLI
# Create my-app/staging
hub app my-app instance create staging

# Deploy to it
hub deploy --name my-app --instance staging

# Any app command works on an instance
hub app my-app/staging logs

On this page