Syntax
Global Options
| Option | Description |
|---|---|
--box TEXT | Lagerbox name or IP address |
--help | Show help message and exit |
Commands
| Command | Description |
|---|---|
python | Run Python script on Lager Box |
Command Reference
python
Run a Python script on the Lager Box.
RUNNABLE- Python script or command to executeARGS- Additional arguments for the script
--box TEXT- Lagerbox name or IP--image IMAGE- Docker image to use (default:lagerdata/gatewaypy3:v0.1.84)--env FOO=BAR- Set environment variables for the script--passenv VAR- Pass environment variables from current environment--kill- Terminate a running Python script--download FILE- Download named files from Lager Box after script completes--allow-overwrite- Allow overwriting existing files with —download--signal [SIGINT|SIGQUIT|SIGABRT|SIGKILL|SIGUSR1|SIGUSR2|SIGTERM|SIGSTOP]- Signal to use with —kill (default: SIGTERM)--timeout SECONDS- Max runtime in seconds for the script-d, --detach- Run in detached mode-p, --port PORT- Forward ports to the Python process--add-file FILE- Add files to folder before upload
Examples
Notes
- Default Docker image:
lagerdata/gatewaypy3:v0.1.84 - Use
--envto set environment variables for the script - Use
--passenvfor secrets/tokens from current environment --downloadretrieves files after script completion--killterminates running scripts with specified signal- Port forwarding syntax:
-p SRC_PORT[:DST_PORT][/PROTOCOL] - Detached mode runs script in background
- Timeout prevents scripts from running indefinitely
pip Command
Run pip commands in the Python container associated with the DUT Lager Box. Useful for installing Python packages that scripts may depend on within the Lager Python environment.Syntax
Options
| Option | Description |
|---|---|
--gateway GATEWAY_ID | ID of Lager Box to which DUT is connected |
--help | Show help message and exit |
Examples
Notes
- Runs pip in the Lager Python container, not on your local machine
- Use
--gatewayto specify the target Lager Box - Useful for managing dependencies for Python scripts run via
lager python - All pip commands and arguments are supported

