CLI
Run your own scripts
cady script runs your own scripts by registered name, on a cadence if you want, and keeps a journal of every run.
The CLI is not released yet; see Install the CLI.
cady script add weekly-report --every 1h --local-only -- /home/you/bin/report.sh
cady script run weekly-report
cady script statusadd records the script’s absolute path and pins its contents. run starts it and journals the run. status prints the journal as JSON, offline. A script is only ever run by name, never by path.
--every 1hor--cron '*/15 * * * *'sets a cadence. The scheduledcady syncjob starts due scripts, so the grain is five minutes.--env NAMElets the script read one environment variable. It getsPATH,CADY_COMPANYand the names you declare, nothing else.--param KEY=REGEXallows a run-time value, as incady script run NAME KEY=value.--timeout SECONDSstops a run that takes too long.--lockrefuses a second run while one is going.--local-onlyopts out of remote starts. Remote starts are not built yet.
cady script list, remove NAME and check [NAME] complete the set.
What can go wrong
- A changed file refuses to run until you register it again with
cady script add NAME --replace -- /path. - A script that other users can write to is refused.
- Exit codes: 0 completed, 1 failed, 2 configuration, 3 uncertain, 124 timed out, 127 not started. A crashed run is marked uncertain and is never replayed.
Next: Upload files and export CRM data
For agents: this page as Markdown.