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 +4 -3
- package/dist/bin.js +6 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/claim.d.ts +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/claim.js.map +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/install-skill.d.ts +5 -0
- package/dist/commands/install-skill.js +23 -0
- package/dist/commands/install-skill.js.map +1 -1
- package/dist/commands/install.js +2 -0
- package/dist/commands/install.js.map +1 -1
- package/dist/lib/unclaimed-env-provision.js +2 -2
- package/dist/lib/unclaimed-env-provision.js.map +1 -1
- package/dist/lib/unclaimed-warning.js +1 -1
- package/dist/lib/unclaimed-warning.js.map +1 -1
- package/dist/utils/help-json.js +14 -15
- package/dist/utils/help-json.js.map +1 -1
- package/package.json +1 -1
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) => {
|