workos 0.11.0 → 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/README.md CHANGED
@@ -50,12 +50,13 @@ workos [command]
50
50
 
51
51
  Commands:
52
52
  install Install WorkOS AuthKit into your project
53
- claim Claim an unclaimed environment (link to your account)
54
53
  auth Manage authentication (login, logout, status)
55
- env Manage environment configurations
54
+ env Manage environment configurations (add, remove, switch, list, claim)
56
55
  doctor Diagnose WorkOS integration issues
57
56
  skills Manage WorkOS skills for coding agents (install, uninstall, list)
58
57
 
58
+ Skills are automatically installed to detected coding agents when you run `workos install`. Use `workos skills list` to check status.
59
+
59
60
  Resource Management:
60
61
  organization (org) Manage organizations
61
62
  user Manage users
@@ -99,7 +100,7 @@ workos env list
99
100
  # Shows: unclaimed (unclaimed) ← active
100
101
 
101
102
  # Claim the environment to link it to your WorkOS account
102
- workos claim
103
+ workos env claim
103
104
  ```
104
105
 
105
106
  Management commands work on unclaimed environments with a warning reminding you to claim.
package/dist/bin.js CHANGED
@@ -321,6 +321,11 @@ yargs(rawArgs)
321
321
  const { runEnvList } = await import('./commands/env.js');
322
322
  await runEnvList();
323
323
  });
324
+ registerSubcommand(yargs, 'claim', 'Claim an unclaimed environment (link it to your account)', (y) => y, async (argv) => {
325
+ await applyInsecureStorage(argv.insecureStorage);
326
+ const { runClaim } = await import('./commands/claim.js');
327
+ await runClaim();
328
+ });
324
329
  return yargs.demandCommand(1, 'Please specify an env subcommand').strict();
325
330
  })
326
331
  .command(['organization', 'org'], 'Manage WorkOS organizations (create, update, get, list, delete)', (yargs) => {
@@ -1149,11 +1154,12 @@ yargs(rawArgs)
1149
1154
  'api-key': { type: 'string', describe: 'WorkOS API key' },
1150
1155
  file: { type: 'string', describe: 'Path to seed YAML file' },
1151
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' },
1152
1158
  }), async (argv) => {
1153
1159
  await applyInsecureStorage(argv.insecureStorage);
1154
1160
  const { resolveApiKey, resolveApiBaseUrl } = await import('./lib/api-key.js');
1155
1161
  const { runSeed } = await import('./commands/seed.js');
1156
- 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());
1157
1163
  })
1158
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({
1159
1165
  ...insecureStorageOption,
@@ -1196,6 +1202,7 @@ yargs(rawArgs)
1196
1202
  const { runDebugSync } = await import('./commands/debug-sync.js');
1197
1203
  await runDebugSync(argv.directoryId, resolveApiKey({ apiKey: argv.apiKey }), resolveApiBaseUrl());
1198
1204
  })
1205
+ // Alias — canonical command is `workos env claim`
1199
1206
  .command('claim', 'Claim an unclaimed WorkOS environment (link it to your account)', (yargs) => yargs.options({
1200
1207
  ...insecureStorageOption,
1201
1208
  }), async (argv) => {