workos 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +2 -1
- package/dist/bin.js.map +1 -1
- package/dist/commands/seed.d.ts +2 -0
- package/dist/commands/seed.js +60 -1
- package/dist/commands/seed.js.map +1 -1
- package/dist/utils/help-json.js +8 -0
- package/dist/utils/help-json.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1154,11 +1154,12 @@ yargs(rawArgs)
|
|
|
1154
1154
|
'api-key': { type: 'string', describe: 'WorkOS API key' },
|
|
1155
1155
|
file: { type: 'string', describe: 'Path to seed YAML file' },
|
|
1156
1156
|
clean: { type: 'boolean', default: false, describe: 'Tear down seeded resources' },
|
|
1157
|
+
init: { type: 'boolean', default: false, describe: 'Create an example workos-seed.yml file' },
|
|
1157
1158
|
}), async (argv) => {
|
|
1158
1159
|
await applyInsecureStorage(argv.insecureStorage);
|
|
1159
1160
|
const { resolveApiKey, resolveApiBaseUrl } = await import('./lib/api-key.js');
|
|
1160
1161
|
const { runSeed } = await import('./commands/seed.js');
|
|
1161
|
-
await runSeed({ file: argv.file, clean: argv.clean }, resolveApiKey({ apiKey: argv.apiKey }), resolveApiBaseUrl());
|
|
1162
|
+
await runSeed({ file: argv.file, clean: argv.clean, init: argv.init }, resolveApiKey({ apiKey: argv.apiKey }), resolveApiBaseUrl());
|
|
1162
1163
|
})
|
|
1163
1164
|
.command('setup-org <name>', 'One-shot organization onboarding (create org, domain, roles, portal link)', (yargs) => yargs.positional('name', { type: 'string', demandOption: true, describe: 'Organization name' }).options({
|
|
1164
1165
|
...insecureStorageOption,
|