rebase shell

Open an interactive shell in a cloud container with a target's image, environment variables, secrets, and volumes.

Synopsis

rebase shell <function>
rebase shell <workflow> --workflow
rebase shell --id <id>
rebase shell <function> --project <project> --version-id <version-id>
rebase shell <function> --idle-timeout 600 --ttl 3600

Behavior

rebase shell starts a container from a deployed function or workflow, with the same image, environment variables, secrets, and volume mounts, and connects your terminal to an interactive shell inside it. The first run may take a minute while dependencies install. Press Ctrl-D or type exit to end the session; the container is removed when you leave.

[name] is looked up as a function unless you pass --workflow. Omit it when using --id.

Arguments

ArgumentTypeDescription
[name]strFunction (default) or workflow name. Omit when using --id.

Options

OptionTypeDescription
--project, -pstrProject name for name-based lookup.
--id, -istrExact function or workflow ID.
--workflow, -wflagOpen a shell in a workflow's environment instead of a function's.
--version-id, -vstrShell into a specific version instead of the current one.
--idle-timeoutintClose the session after this many seconds without activity.
--ttl, -tintHard session limit in seconds, capped by the server.

On this page