Skip to content

fix: add workos seed --init to scaffold example seed file#97

Merged
nicknisi merged 2 commits intomainfrom
nicknisi/seed-init
Mar 17, 2026
Merged

fix: add workos seed --init to scaffold example seed file#97
nicknisi merged 2 commits intomainfrom
nicknisi/seed-init

Conversation

@nicknisi
Copy link
Member

Summary

  • Adds --init flag to workos seed that writes a commented workos-seed.yml with example permissions, roles, organizations, and config
  • Refuses to overwrite if the file already exists
  • Updates the no-file error message to hint at --init
  • Registers the option in help-json.ts so agents discover it

The seed file format was previously only documented in the repo README — not discoverable from the CLI itself. This follows the npm init / eslint --init pattern.

Test plan

  • pnpm test passes (1153 tests)
  • pnpm typecheck passes
  • 4 new tests: creates file, refuses overwrite, JSON mode output, reachable via runSeed({ init: true })

Writes a commented workos-seed.yml with example permissions, roles,
organizations, and config. Refuses to overwrite an existing file.
Also updates the no-file error message to hint at --init.
@nicknisi nicknisi changed the title feat: add workos seed --init to scaffold example seed file fix: add workos seed --init to scaffold example seed file Mar 17, 2026
@nicknisi nicknisi merged commit a8ea743 into main Mar 17, 2026
5 checks passed
@nicknisi nicknisi deleted the nicknisi/seed-init branch March 17, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant