hub app <name> instance [options] [command]
| Argument | Description |
|---|
<name> | The app, or app/instance for an instance other than prod, such as my-app/staging. |
List every instance of the app.
hub app <name> instance list [options]
| Option | Description |
|---|
--json | Return a structured result for scripts and agents. |
Delete one instance; ask separately before deleting its data.
hub app <name> instance remove [options] <instance>
| Argument | Description |
|---|
<instance> | Instance name, including prod. |
| Option | Description |
|---|
--yes | Skip confirmation and keep data. |
--delete-data | Also delete volumes and skip confirmation. |
Create another instance of the app.
hub app <name> instance create [options] <instance>
| Argument | Description |
|---|
<instance> | Instance name, such as staging. |
| Option | Description |
|---|
--json | Return a structured result for scripts and agents. |
# 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