product:shell

Open an interactive shell inside the active product’s main container.


Usage

splent product:shell [--dev] [--prod] [--service SERVICE] [--cmd CMD]

Examples

Open an interactive bash shell:

splent product:shell

Run a one-off command without an interactive shell:

splent product:shell --cmd "flask db upgrade"

Open a shell in a specific service:

splent product:shell --service db

Options

Option Description
--dev Use the development Docker Compose file.
--prod Use the production Docker Compose file.
--service Target a specific service by name instead of the main container.
--cmd Run a single command and exit instead of opening an interactive shell.

If neither --dev nor --prod is provided, SPLENT_ENV is used (defaults to dev).


Description

Identifies the main product container as the one with /workspace mounted and opens bash inside it (falls back to sh if bash is not available). Use --service to target a different container by its Docker Compose service name.

Use --cmd to run automation or one-off tasks without an interactive session.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es