release instances exec

Command reference doc for the Release CLI

Execute a command in a running instance

Description

Execute a command in a running instance

If an --environment flag is not provided it can be selected interactively through a fuzzy finder interface.

If the --instance flag is not provided it can be selected interactively through a fuzzy finder interface. If it is provided but matches more than one instance, the matching instances will be shown in the fuzzy finder.

release instances exec [FLAGS] -- COMMAND [ARGS...] [flags]

Examples


Execute a command in an instance selecting the environment interactively:
> release instances exec -- psql

Execute a command in an instance in a specific app and environment:
> release instances exec --app web --environment staging -- psql

Execute a command in a specific service instance:
> release instances exec --app web --environment staging --instance backend -- psql

Options

--account <string>

Account name or ID (default: $RELEASE_ACCOUNT or "account" in config file)

--app <string>

App name or ID (default: $RELEASE_APP or "app" in config file)

--environment <string>

Environment handle or ID

--instance <string>

Instance name query

Options inherited from parent commands

--config <string>

config file (default is $HOME/.release.yaml)

--debug

enable debug logging

Last updated