Skip to content

Dry Run and Verbosity

Dry run mode prevents actual changes while still showing what would happen. Idempotent operations emit change events but skip modification.

Enable via environment variable:

Terminal window
SYSOPKIT_DRY_RUN=1 bun run script.ts

Or programmatically:

await start(
async (ctx) => {
// idempotent ops will emit changes but not execute
await createFile({ path, content });
// manual check for non-idempotent operations
if (!ctx.dryRun) {
await sh('destructive-command');
}
},
{ dryRun: true },
);
LevelConstantUsage
0VERBOSITY_MINIMALSuppress most output
1VERBOSITY_NORMALDefault task visibility
2VERBOSITY_TRACEInclude trace-level details
3VERBOSITY_DEBUGFull debug output

Set via environment variable:

Terminal window
SYSOPKIT_VERBOSITY=debug bun run script.ts

Valid values: minimal, normal, trace, debug.

Invalid values produce a warning and fall back to normal.