chore: add WORKFLOW_STORAGE_ROOT env var support to CLI #63

Closed
opened 2026-05-07 13:57:52 +00:00 by xiaoju · 0 comments
Owner

Currently the CLI always uses the default storage root (~/.uncaged/workflow). Add support for a WORKFLOW_STORAGE_ROOT environment variable to override it.

This is useful for testing and for users who want to keep workflow data in a different location.

Changes needed

  1. In packages/cli-workflow/src/storage-env.ts, check process.env.WORKFLOW_STORAGE_ROOT and use it if set.
  2. Update the CLI help text to mention this env var.
  3. Add a test verifying the env var is respected.

Small, focused change — good candidate for automated workflow.

Currently the CLI always uses the default storage root (`~/.uncaged/workflow`). Add support for a `WORKFLOW_STORAGE_ROOT` environment variable to override it. This is useful for testing and for users who want to keep workflow data in a different location. ## Changes needed 1. In `packages/cli-workflow/src/storage-env.ts`, check `process.env.WORKFLOW_STORAGE_ROOT` and use it if set. 2. Update the CLI help text to mention this env var. 3. Add a test verifying the env var is respected. Small, focused change — good candidate for automated workflow.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#63