workos 0.11.0 → 0.11.1

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) => {
@@ -1196,6 +1201,7 @@ yargs(rawArgs)
1196
1201
  const { runDebugSync } = await import('./commands/debug-sync.js');
1197
1202
  await runDebugSync(argv.directoryId, resolveApiKey({ apiKey: argv.apiKey }), resolveApiBaseUrl());
1198
1203
  })
1204
+ // Alias — canonical command is `workos env claim`
1199
1205
  .command('claim', 'Claim an unclaimed WorkOS environment (link it to your account)', (yargs) => yargs.options({
1200
1206
  ...insecureStorageOption,
1201
1207
  }), async (argv) => {