CLI reference / hub app <name>
hub app <name> exec
Run a command inside the app.
Usage
hub app <name> exec [options] <cmd...>Arguments
| Argument | Description |
|---|---|
<name> | The app, or app/instance for an instance other than prod, such as my-app/staging. |
<cmd...> | Command to run, after --. |
Options
| Option | Description |
|---|---|
--service <name> | Service to run it in, default the public service. |
Examples
# Run ls in the app
hub app my-app exec -- ls -la
# Run psql in the db service
hub app my-app exec --service db -- psql -U app