Reference
crab run
Execute a command with content-addressed caching.
Synopsis
crab run [OPTIONS] <COMMAND>...Description
crab run executes a shell command and caches its outputs based on the content
hash of its inputs. If the same command is run again with identical inputs, the
cached outputs are restored instantly without re-executing.
For conceptual background, see Running Commands.
Arguments
| Argument | Required | Description |
|---|---|---|
COMMAND | Yes | The command to execute |
Options
| Option | Default | Description |
|---|---|---|
--deps | Input dependencies (files/globs) | |
--outs | Output files to cache | |
--no-cache | false | Force re-execution, ignoring cache |
--json | false | Emit structured JSON output |
Examples
Cache a training run
crab run --deps 'data/**' --outs 'models/output.pkl' -- python train.pyForce re-execution
crab run --no-cache -- python train.pyRelated Commands
crab workflow— multi-step pipelines.crab exp— experiment tracking.