Commands / kosa8 hooks sandbox-run
kosa8 hooks sandbox-run
Run one shell command in the project's kosa8 sandbox (what sandbox mode rewrites commands to)
Usage
kosa8 hooks sandbox-run --project DIR [--cwd DIR] -- COMMAND
Runs COMMAND with sh in the project's sandbox, hooks-<hash of the folder>, which is
created on first use with the project mounted at /work and kept for the next
command (kosa8 sandbox rm removes it). Exits with the command's status.
Options
| Flag | Type | What it does | Default |
|---|---|---|---|
--cwd | string | where the command runs (inside the project) | — |
--image | string | the image to run in (default node:22-slim) | — |
--project | string | the project folder, mounted at /work | — |