kosa8 docs

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

FlagTypeWhat it doesDefault
--cwdstringwhere the command runs (inside the project)—
--imagestringthe image to run in (default node:22-slim)—
--projectstringthe project folder, mounted at /work—