workos 0.19.0 → 0.20.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 -646
- package/bin/workos.js +44 -0
- package/package.json +18 -99
- package/LICENSE +0 -47
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +0 -1790
- package/dist/bin.js.map +0 -1
- package/dist/cli.config.d.ts +0 -88
- package/dist/cli.config.js +0 -110
- package/dist/cli.config.js.map +0 -1
- package/dist/commands/api/catalog.d.ts +0 -23
- package/dist/commands/api/catalog.js +0 -97
- package/dist/commands/api/catalog.js.map +0 -1
- package/dist/commands/api/format.d.ts +0 -5
- package/dist/commands/api/format.js +0 -46
- package/dist/commands/api/format.js.map +0 -1
- package/dist/commands/api/index.d.ts +0 -15
- package/dist/commands/api/index.js +0 -213
- package/dist/commands/api/index.js.map +0 -1
- package/dist/commands/api/interactive.d.ts +0 -3
- package/dist/commands/api/interactive.js +0 -133
- package/dist/commands/api/interactive.js.map +0 -1
- package/dist/commands/api/request.d.ts +0 -14
- package/dist/commands/api/request.js +0 -38
- package/dist/commands/api/request.js.map +0 -1
- package/dist/commands/api-key-mgmt.d.ts +0 -16
- package/dist/commands/api-key-mgmt.js +0 -96
- package/dist/commands/api-key-mgmt.js.map +0 -1
- package/dist/commands/audit-log.d.ts +0 -26
- package/dist/commands/audit-log.js +0 -155
- package/dist/commands/audit-log.js.map +0 -1
- package/dist/commands/auth-status.d.ts +0 -1
- package/dist/commands/auth-status.js +0 -57
- package/dist/commands/auth-status.js.map +0 -1
- package/dist/commands/claim.d.ts +0 -11
- package/dist/commands/claim.js +0 -143
- package/dist/commands/claim.js.map +0 -1
- package/dist/commands/config.d.ts +0 -3
- package/dist/commands/config.js +0 -54
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/connection.d.ts +0 -13
- package/dist/commands/connection.js +0 -96
- package/dist/commands/connection.js.map +0 -1
- package/dist/commands/debug-sso.d.ts +0 -1
- package/dist/commands/debug-sso.js +0 -78
- package/dist/commands/debug-sso.js.map +0 -1
- package/dist/commands/debug-sync.d.ts +0 -1
- package/dist/commands/debug-sync.js +0 -102
- package/dist/commands/debug-sync.js.map +0 -1
- package/dist/commands/debug.d.ts +0 -28
- package/dist/commands/debug.js +0 -406
- package/dist/commands/debug.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -22
- package/dist/commands/dev.js +0 -145
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/directory.d.ts +0 -27
- package/dist/commands/directory.js +0 -176
- package/dist/commands/directory.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -12
- package/dist/commands/doctor.js +0 -41
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/emulate.d.ts +0 -7
- package/dist/commands/emulate.js +0 -69
- package/dist/commands/emulate.js.map +0 -1
- package/dist/commands/env.d.ts +0 -19
- package/dist/commands/env.js +0 -303
- package/dist/commands/env.js.map +0 -1
- package/dist/commands/event.d.ts +0 -9
- package/dist/commands/event.js +0 -43
- package/dist/commands/event.js.map +0 -1
- package/dist/commands/feature-flag.d.ts +0 -12
- package/dist/commands/feature-flag.js +0 -96
- package/dist/commands/feature-flag.js.map +0 -1
- package/dist/commands/install-skill.d.ts +0 -85
- package/dist/commands/install-skill.js +0 -332
- package/dist/commands/install-skill.js.map +0 -1
- package/dist/commands/install.d.ts +0 -6
- package/dist/commands/install.js +0 -51
- package/dist/commands/install.js.map +0 -1
- package/dist/commands/invitation.d.ts +0 -19
- package/dist/commands/invitation.js +0 -94
- package/dist/commands/invitation.js.map +0 -1
- package/dist/commands/list-skills.d.ts +0 -4
- package/dist/commands/list-skills.js +0 -52
- package/dist/commands/list-skills.js.map +0 -1
- package/dist/commands/login.d.ts +0 -32
- package/dist/commands/login.js +0 -239
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logout.d.ts +0 -1
- package/dist/commands/logout.js +0 -17
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -14
- package/dist/commands/mcp.js +0 -99
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/membership.d.ts +0 -20
- package/dist/commands/membership.js +0 -129
- package/dist/commands/membership.js.map +0 -1
- package/dist/commands/migrations.d.ts +0 -2
- package/dist/commands/migrations.js +0 -50
- package/dist/commands/migrations.js.map +0 -1
- package/dist/commands/onboard-user.d.ts +0 -7
- package/dist/commands/onboard-user.js +0 -61
- package/dist/commands/onboard-user.js.map +0 -1
- package/dist/commands/org-domain.d.ts +0 -4
- package/dist/commands/org-domain.js +0 -45
- package/dist/commands/org-domain.js.map +0 -1
- package/dist/commands/organization.d.ts +0 -14
- package/dist/commands/organization.js +0 -103
- package/dist/commands/organization.js.map +0 -1
- package/dist/commands/permission.d.ts +0 -20
- package/dist/commands/permission.js +0 -93
- package/dist/commands/permission.js.map +0 -1
- package/dist/commands/portal.d.ts +0 -7
- package/dist/commands/portal.js +0 -26
- package/dist/commands/portal.js.map +0 -1
- package/dist/commands/role.d.ts +0 -17
- package/dist/commands/role.js +0 -122
- package/dist/commands/role.js.map +0 -1
- package/dist/commands/seed.d.ts +0 -6
- package/dist/commands/seed.js +0 -298
- package/dist/commands/seed.js.map +0 -1
- package/dist/commands/session.d.ts +0 -8
- package/dist/commands/session.js +0 -63
- package/dist/commands/session.js.map +0 -1
- package/dist/commands/setup-org.d.ts +0 -6
- package/dist/commands/setup-org.js +0 -99
- package/dist/commands/setup-org.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -50
- package/dist/commands/setup.js +0 -237
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/telemetry.d.ts +0 -3
- package/dist/commands/telemetry.js +0 -88
- package/dist/commands/telemetry.js.map +0 -1
- package/dist/commands/uninstall-skill.d.ts +0 -11
- package/dist/commands/uninstall-skill.js +0 -117
- package/dist/commands/uninstall-skill.js.map +0 -1
- package/dist/commands/user.d.ts +0 -19
- package/dist/commands/user.js +0 -92
- package/dist/commands/user.js.map +0 -1
- package/dist/commands/vault-run.d.ts +0 -13
- package/dist/commands/vault-run.js +0 -195
- package/dist/commands/vault-run.js.map +0 -1
- package/dist/commands/vault.d.ts +0 -25
- package/dist/commands/vault.js +0 -153
- package/dist/commands/vault.js.map +0 -1
- package/dist/commands/verify-login.d.ts +0 -25
- package/dist/commands/verify-login.js +0 -158
- package/dist/commands/verify-login.js.map +0 -1
- package/dist/commands/webhook.d.ts +0 -3
- package/dist/commands/webhook.js +0 -92
- package/dist/commands/webhook.js.map +0 -1
- package/dist/craft-pre-release.sh +0 -10
- package/dist/dashboard/components/AnimatedLogo.d.ts +0 -8
- package/dist/dashboard/components/AnimatedLogo.js +0 -16
- package/dist/dashboard/components/AnimatedLogo.js.map +0 -1
- package/dist/dashboard/components/CompletionView.d.ts +0 -13
- package/dist/dashboard/components/CompletionView.js +0 -25
- package/dist/dashboard/components/CompletionView.js.map +0 -1
- package/dist/dashboard/components/ConfirmPrompt.d.ts +0 -9
- package/dist/dashboard/components/ConfirmPrompt.js +0 -25
- package/dist/dashboard/components/ConfirmPrompt.js.map +0 -1
- package/dist/dashboard/components/CredentialsForm.d.ts +0 -10
- package/dist/dashboard/components/CredentialsForm.js +0 -47
- package/dist/dashboard/components/CredentialsForm.js.map +0 -1
- package/dist/dashboard/components/Dashboard.d.ts +0 -3
- package/dist/dashboard/components/Dashboard.js +0 -100
- package/dist/dashboard/components/Dashboard.js.map +0 -1
- package/dist/dashboard/components/DashboardLayout.d.ts +0 -24
- package/dist/dashboard/components/DashboardLayout.js +0 -25
- package/dist/dashboard/components/DashboardLayout.js.map +0 -1
- package/dist/dashboard/components/DiffPanel.d.ts +0 -9
- package/dist/dashboard/components/DiffPanel.js +0 -136
- package/dist/dashboard/components/DiffPanel.js.map +0 -1
- package/dist/dashboard/components/InlinePrompt.d.ts +0 -8
- package/dist/dashboard/components/InlinePrompt.js +0 -19
- package/dist/dashboard/components/InlinePrompt.js.map +0 -1
- package/dist/dashboard/components/OutputPanel.d.ts +0 -10
- package/dist/dashboard/components/OutputPanel.js +0 -100
- package/dist/dashboard/components/OutputPanel.js.map +0 -1
- package/dist/dashboard/components/Panel.d.ts +0 -12
- package/dist/dashboard/components/Panel.js +0 -6
- package/dist/dashboard/components/Panel.js.map +0 -1
- package/dist/dashboard/components/TextInput.d.ts +0 -13
- package/dist/dashboard/components/TextInput.js +0 -57
- package/dist/dashboard/components/TextInput.js.map +0 -1
- package/dist/dashboard/components/WelcomeArt.d.ts +0 -2
- package/dist/dashboard/components/WelcomeArt.js +0 -9
- package/dist/dashboard/components/WelcomeArt.js.map +0 -1
- package/dist/dashboard/hooks/useAnimation.d.ts +0 -7
- package/dist/dashboard/hooks/useAnimation.js +0 -24
- package/dist/dashboard/hooks/useAnimation.js.map +0 -1
- package/dist/dashboard/hooks/useKeyboard.d.ts +0 -8
- package/dist/dashboard/hooks/useKeyboard.js +0 -18
- package/dist/dashboard/hooks/useKeyboard.js.map +0 -1
- package/dist/dashboard/hooks/useTerminalSize.d.ts +0 -8
- package/dist/dashboard/hooks/useTerminalSize.js +0 -23
- package/dist/dashboard/hooks/useTerminalSize.js.map +0 -1
- package/dist/dashboard/index.d.ts +0 -6
- package/dist/dashboard/index.js +0 -36
- package/dist/dashboard/index.js.map +0 -1
- package/dist/dashboard/lib/diff-utils.d.ts +0 -21
- package/dist/dashboard/lib/diff-utils.js +0 -271
- package/dist/dashboard/lib/diff-utils.js.map +0 -1
- package/dist/dashboard/lib/logo-frames.d.ts +0 -20
- package/dist/dashboard/lib/logo-frames.js +0 -109
- package/dist/dashboard/lib/logo-frames.js.map +0 -1
- package/dist/dashboard/lib/welcome-art.d.ts +0 -1
- package/dist/dashboard/lib/welcome-art.js +0 -5
- package/dist/dashboard/lib/welcome-art.js.map +0 -1
- package/dist/dashboard/types.d.ts +0 -5
- package/dist/dashboard/types.js +0 -2
- package/dist/dashboard/types.js.map +0 -1
- package/dist/doctor/agent-prompt.d.ts +0 -10
- package/dist/doctor/agent-prompt.js +0 -190
- package/dist/doctor/agent-prompt.js.map +0 -1
- package/dist/doctor/checks/ai-analysis.d.ts +0 -9
- package/dist/doctor/checks/ai-analysis.js +0 -124
- package/dist/doctor/checks/ai-analysis.js.map +0 -1
- package/dist/doctor/checks/auth-patterns.d.ts +0 -2
- package/dist/doctor/checks/auth-patterns.js +0 -569
- package/dist/doctor/checks/auth-patterns.js.map +0 -1
- package/dist/doctor/checks/connectivity.d.ts +0 -2
- package/dist/doctor/checks/connectivity.js +0 -35
- package/dist/doctor/checks/connectivity.js.map +0 -1
- package/dist/doctor/checks/dashboard.d.ts +0 -3
- package/dist/doctor/checks/dashboard.js +0 -123
- package/dist/doctor/checks/dashboard.js.map +0 -1
- package/dist/doctor/checks/environment.d.ts +0 -2
- package/dist/doctor/checks/environment.js +0 -86
- package/dist/doctor/checks/environment.js.map +0 -1
- package/dist/doctor/checks/framework.d.ts +0 -2
- package/dist/doctor/checks/framework.js +0 -94
- package/dist/doctor/checks/framework.js.map +0 -1
- package/dist/doctor/checks/host-execution.d.ts +0 -2
- package/dist/doctor/checks/host-execution.js +0 -21
- package/dist/doctor/checks/host-execution.js.map +0 -1
- package/dist/doctor/checks/language.d.ts +0 -6
- package/dist/doctor/checks/language.js +0 -104
- package/dist/doctor/checks/language.js.map +0 -1
- package/dist/doctor/checks/mcp.d.ts +0 -15
- package/dist/doctor/checks/mcp.js +0 -34
- package/dist/doctor/checks/mcp.js.map +0 -1
- package/dist/doctor/checks/runtime.d.ts +0 -2
- package/dist/doctor/checks/runtime.js +0 -20
- package/dist/doctor/checks/runtime.js.map +0 -1
- package/dist/doctor/checks/sdk.d.ts +0 -2
- package/dist/doctor/checks/sdk.js +0 -192
- package/dist/doctor/checks/sdk.js.map +0 -1
- package/dist/doctor/checks/skills.d.ts +0 -9
- package/dist/doctor/checks/skills.js +0 -84
- package/dist/doctor/checks/skills.js.map +0 -1
- package/dist/doctor/clipboard.d.ts +0 -1
- package/dist/doctor/clipboard.js +0 -43
- package/dist/doctor/clipboard.js.map +0 -1
- package/dist/doctor/index.d.ts +0 -26
- package/dist/doctor/index.js +0 -182
- package/dist/doctor/index.js.map +0 -1
- package/dist/doctor/issues.d.ts +0 -63
- package/dist/doctor/issues.js +0 -199
- package/dist/doctor/issues.js.map +0 -1
- package/dist/doctor/json-output.d.ts +0 -2
- package/dist/doctor/json-output.js +0 -4
- package/dist/doctor/json-output.js.map +0 -1
- package/dist/doctor/output.d.ts +0 -7
- package/dist/doctor/output.js +0 -289
- package/dist/doctor/output.js.map +0 -1
- package/dist/doctor/types.d.ts +0 -203
- package/dist/doctor/types.js +0 -2
- package/dist/doctor/types.js.map +0 -1
- package/dist/integrations/dotnet/index.d.ts +0 -8
- package/dist/integrations/dotnet/index.js +0 -170
- package/dist/integrations/dotnet/index.js.map +0 -1
- package/dist/integrations/elixir/index.d.ts +0 -8
- package/dist/integrations/elixir/index.js +0 -146
- package/dist/integrations/elixir/index.js.map +0 -1
- package/dist/integrations/go/index.d.ts +0 -11
- package/dist/integrations/go/index.js +0 -212
- package/dist/integrations/go/index.js.map +0 -1
- package/dist/integrations/kotlin/index.d.ts +0 -4
- package/dist/integrations/kotlin/index.js +0 -78
- package/dist/integrations/kotlin/index.js.map +0 -1
- package/dist/integrations/nextjs/index.d.ts +0 -4
- package/dist/integrations/nextjs/index.js +0 -93
- package/dist/integrations/nextjs/index.js.map +0 -1
- package/dist/integrations/nextjs/utils.d.ts +0 -8
- package/dist/integrations/nextjs/utils.js +0 -68
- package/dist/integrations/nextjs/utils.js.map +0 -1
- package/dist/integrations/node/index.d.ts +0 -4
- package/dist/integrations/node/index.js +0 -52
- package/dist/integrations/node/index.js.map +0 -1
- package/dist/integrations/php/index.d.ts +0 -4
- package/dist/integrations/php/index.js +0 -51
- package/dist/integrations/php/index.js.map +0 -1
- package/dist/integrations/php-laravel/index.d.ts +0 -4
- package/dist/integrations/php-laravel/index.js +0 -51
- package/dist/integrations/php-laravel/index.js.map +0 -1
- package/dist/integrations/python/index.d.ts +0 -9
- package/dist/integrations/python/index.js +0 -249
- package/dist/integrations/python/index.js.map +0 -1
- package/dist/integrations/react/index.d.ts +0 -4
- package/dist/integrations/react/index.js +0 -49
- package/dist/integrations/react/index.js.map +0 -1
- package/dist/integrations/react-router/index.d.ts +0 -4
- package/dist/integrations/react-router/index.js +0 -94
- package/dist/integrations/react-router/index.js.map +0 -1
- package/dist/integrations/react-router/utils.d.ts +0 -10
- package/dist/integrations/react-router/utils.js +0 -162
- package/dist/integrations/react-router/utils.js.map +0 -1
- package/dist/integrations/ruby/index.d.ts +0 -8
- package/dist/integrations/ruby/index.js +0 -137
- package/dist/integrations/ruby/index.js.map +0 -1
- package/dist/integrations/sveltekit/index.d.ts +0 -4
- package/dist/integrations/sveltekit/index.js +0 -50
- package/dist/integrations/sveltekit/index.js.map +0 -1
- package/dist/integrations/tanstack-start/index.d.ts +0 -4
- package/dist/integrations/tanstack-start/index.js +0 -51
- package/dist/integrations/tanstack-start/index.js.map +0 -1
- package/dist/integrations/vanilla-js/index.d.ts +0 -4
- package/dist/integrations/vanilla-js/index.js +0 -49
- package/dist/integrations/vanilla-js/index.js.map +0 -1
- package/dist/lib/__test-helpers__/mock-unclaimed-env-api-error.d.ts +0 -7
- package/dist/lib/__test-helpers__/mock-unclaimed-env-api-error.js +0 -12
- package/dist/lib/__test-helpers__/mock-unclaimed-env-api-error.js.map +0 -1
- package/dist/lib/adapters/cli-adapter.d.ts +0 -113
- package/dist/lib/adapters/cli-adapter.js +0 -641
- package/dist/lib/adapters/cli-adapter.js.map +0 -1
- package/dist/lib/adapters/dashboard-adapter.d.ts +0 -34
- package/dist/lib/adapters/dashboard-adapter.js +0 -121
- package/dist/lib/adapters/dashboard-adapter.js.map +0 -1
- package/dist/lib/adapters/headless-adapter.d.ts +0 -80
- package/dist/lib/adapters/headless-adapter.js +0 -347
- package/dist/lib/adapters/headless-adapter.js.map +0 -1
- package/dist/lib/adapters/index.d.ts +0 -4
- package/dist/lib/adapters/index.js +0 -4
- package/dist/lib/adapters/index.js.map +0 -1
- package/dist/lib/adapters/types.d.ts +0 -41
- package/dist/lib/adapters/types.js +0 -2
- package/dist/lib/adapters/types.js.map +0 -1
- package/dist/lib/agent-interface.d.ts +0 -84
- package/dist/lib/agent-interface.js +0 -840
- package/dist/lib/agent-interface.js.map +0 -1
- package/dist/lib/agent-runner.d.ts +0 -9
- package/dist/lib/agent-runner.js +0 -261
- package/dist/lib/agent-runner.js.map +0 -1
- package/dist/lib/ai-content.d.ts +0 -14
- package/dist/lib/ai-content.js +0 -131
- package/dist/lib/ai-content.js.map +0 -1
- package/dist/lib/api-error-handler.d.ts +0 -18
- package/dist/lib/api-error-handler.js +0 -76
- package/dist/lib/api-error-handler.js.map +0 -1
- package/dist/lib/api-key.d.ts +0 -14
- package/dist/lib/api-key.js +0 -37
- package/dist/lib/api-key.js.map +0 -1
- package/dist/lib/api.d.ts +0 -25
- package/dist/lib/api.js +0 -120
- package/dist/lib/api.js.map +0 -1
- package/dist/lib/background-refresh.d.ts +0 -29
- package/dist/lib/background-refresh.js +0 -95
- package/dist/lib/background-refresh.js.map +0 -1
- package/dist/lib/command-aliases.d.ts +0 -8
- package/dist/lib/command-aliases.js +0 -12
- package/dist/lib/command-aliases.js.map +0 -1
- package/dist/lib/completion-data.d.ts +0 -33
- package/dist/lib/completion-data.js +0 -33
- package/dist/lib/completion-data.js.map +0 -1
- package/dist/lib/config-store.d.ts +0 -63
- package/dist/lib/config-store.js +0 -293
- package/dist/lib/config-store.js.map +0 -1
- package/dist/lib/config.d.ts +0 -34
- package/dist/lib/config.js +0 -37
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/constants.d.ts +0 -51
- package/dist/lib/constants.js +0 -50
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/credential-discovery.d.ts +0 -42
- package/dist/lib/credential-discovery.js +0 -100
- package/dist/lib/credential-discovery.js.map +0 -1
- package/dist/lib/credential-proxy.d.ts +0 -45
- package/dist/lib/credential-proxy.js +0 -364
- package/dist/lib/credential-proxy.js.map +0 -1
- package/dist/lib/credential-store.d.ts +0 -32
- package/dist/lib/credential-store.js +0 -236
- package/dist/lib/credential-store.js.map +0 -1
- package/dist/lib/credentials.d.ts +0 -13
- package/dist/lib/credentials.js +0 -34
- package/dist/lib/credentials.js.map +0 -1
- package/dist/lib/dev-command.d.ts +0 -26
- package/dist/lib/dev-command.js +0 -129
- package/dist/lib/dev-command.js.map +0 -1
- package/dist/lib/device-auth.d.ts +0 -48
- package/dist/lib/device-auth.js +0 -176
- package/dist/lib/device-auth.js.map +0 -1
- package/dist/lib/device-id.d.ts +0 -25
- package/dist/lib/device-id.js +0 -102
- package/dist/lib/device-id.js.map +0 -1
- package/dist/lib/ensure-auth.d.ts +0 -12
- package/dist/lib/ensure-auth.js +0 -111
- package/dist/lib/ensure-auth.js.map +0 -1
- package/dist/lib/env-writer.d.ts +0 -25
- package/dist/lib/env-writer.js +0 -90
- package/dist/lib/env-writer.js.map +0 -1
- package/dist/lib/events.d.ts +0 -248
- package/dist/lib/events.js +0 -19
- package/dist/lib/events.js.map +0 -1
- package/dist/lib/framework-config.d.ts +0 -133
- package/dist/lib/framework-config.js +0 -11
- package/dist/lib/framework-config.js.map +0 -1
- package/dist/lib/helper-functions.d.ts +0 -1
- package/dist/lib/helper-functions.js +0 -2
- package/dist/lib/helper-functions.js.map +0 -1
- package/dist/lib/host-probe.d.ts +0 -28
- package/dist/lib/host-probe.js +0 -154
- package/dist/lib/host-probe.js.map +0 -1
- package/dist/lib/installer-core.d.ts +0 -569
- package/dist/lib/installer-core.js +0 -1134
- package/dist/lib/installer-core.js.map +0 -1
- package/dist/lib/installer-core.types.d.ts +0 -162
- package/dist/lib/installer-core.types.js +0 -2
- package/dist/lib/installer-core.types.js.map +0 -1
- package/dist/lib/mcp-clients.d.ts +0 -45
- package/dist/lib/mcp-clients.js +0 -297
- package/dist/lib/mcp-clients.js.map +0 -1
- package/dist/lib/port-detection.d.ts +0 -7
- package/dist/lib/port-detection.js +0 -244
- package/dist/lib/port-detection.js.map +0 -1
- package/dist/lib/post-install.d.ts +0 -8
- package/dist/lib/post-install.js +0 -51
- package/dist/lib/post-install.js.map +0 -1
- package/dist/lib/preferences.d.ts +0 -143
- package/dist/lib/preferences.js +0 -227
- package/dist/lib/preferences.js.map +0 -1
- package/dist/lib/progress-tracker.d.ts +0 -22
- package/dist/lib/progress-tracker.js +0 -47
- package/dist/lib/progress-tracker.js.map +0 -1
- package/dist/lib/registry.d.ts +0 -42
- package/dist/lib/registry.js +0 -96
- package/dist/lib/registry.js.map +0 -1
- package/dist/lib/resolve-install-credentials.d.ts +0 -11
- package/dist/lib/resolve-install-credentials.js +0 -53
- package/dist/lib/resolve-install-credentials.js.map +0 -1
- package/dist/lib/run-with-core.d.ts +0 -7
- package/dist/lib/run-with-core.js +0 -559
- package/dist/lib/run-with-core.js.map +0 -1
- package/dist/lib/safe-tools.d.ts +0 -2
- package/dist/lib/safe-tools.js +0 -212
- package/dist/lib/safe-tools.js.map +0 -1
- package/dist/lib/scaffold/index.d.ts +0 -1
- package/dist/lib/scaffold/index.js +0 -2
- package/dist/lib/scaffold/index.js.map +0 -1
- package/dist/lib/scaffold/scaffold.d.ts +0 -66
- package/dist/lib/scaffold/scaffold.js +0 -156
- package/dist/lib/scaffold/scaffold.js.map +0 -1
- package/dist/lib/settings.d.ts +0 -60
- package/dist/lib/settings.js +0 -31
- package/dist/lib/settings.js.map +0 -1
- package/dist/lib/staging-api.d.ts +0 -22
- package/dist/lib/staging-api.js +0 -74
- package/dist/lib/staging-api.js.map +0 -1
- package/dist/lib/startup-notice-gate.d.ts +0 -21
- package/dist/lib/startup-notice-gate.js +0 -29
- package/dist/lib/startup-notice-gate.js.map +0 -1
- package/dist/lib/telemetry-notice.d.ts +0 -25
- package/dist/lib/telemetry-notice.js +0 -58
- package/dist/lib/telemetry-notice.js.map +0 -1
- package/dist/lib/token-refresh-client.d.ts +0 -23
- package/dist/lib/token-refresh-client.js +0 -89
- package/dist/lib/token-refresh-client.js.map +0 -1
- package/dist/lib/token-refresh.d.ts +0 -12
- package/dist/lib/token-refresh.js +0 -27
- package/dist/lib/token-refresh.js.map +0 -1
- package/dist/lib/unclaimed-env-api.d.ts +0 -42
- package/dist/lib/unclaimed-env-api.js +0 -139
- package/dist/lib/unclaimed-env-api.js.map +0 -1
- package/dist/lib/unclaimed-env-provision.d.ts +0 -24
- package/dist/lib/unclaimed-env-provision.js +0 -80
- package/dist/lib/unclaimed-env-provision.js.map +0 -1
- package/dist/lib/unclaimed-warning.d.ts +0 -15
- package/dist/lib/unclaimed-warning.js +0 -78
- package/dist/lib/unclaimed-warning.js.map +0 -1
- package/dist/lib/validation/build-validator.d.ts +0 -21
- package/dist/lib/validation/build-validator.js +0 -153
- package/dist/lib/validation/build-validator.js.map +0 -1
- package/dist/lib/validation/index.d.ts +0 -4
- package/dist/lib/validation/index.js +0 -4
- package/dist/lib/validation/index.js.map +0 -1
- package/dist/lib/validation/quick-checks.d.ts +0 -19
- package/dist/lib/validation/quick-checks.js +0 -192
- package/dist/lib/validation/quick-checks.js.map +0 -1
- package/dist/lib/validation/security-checks.d.ts +0 -35
- package/dist/lib/validation/security-checks.js +0 -106
- package/dist/lib/validation/security-checks.js.map +0 -1
- package/dist/lib/validation/types.d.ts +0 -56
- package/dist/lib/validation/types.js +0 -2
- package/dist/lib/validation/types.js.map +0 -1
- package/dist/lib/validation/validator.d.ts +0 -13
- package/dist/lib/validation/validator.js +0 -711
- package/dist/lib/validation/validator.js.map +0 -1
- package/dist/lib/version-check.d.ts +0 -6
- package/dist/lib/version-check.js +0 -46
- package/dist/lib/version-check.js.map +0 -1
- package/dist/lib/workos-api.d.ts +0 -30
- package/dist/lib/workos-api.js +0 -69
- package/dist/lib/workos-api.js.map +0 -1
- package/dist/lib/workos-client.d.ts +0 -58
- package/dist/lib/workos-client.js +0 -140
- package/dist/lib/workos-client.js.map +0 -1
- package/dist/lib/workos-management.d.ts +0 -32
- package/dist/lib/workos-management.js +0 -149
- package/dist/lib/workos-management.js.map +0 -1
- package/dist/nextjs/nextjs-installer-agent.d.ts +0 -5
- package/dist/nextjs/nextjs-installer-agent.js +0 -6
- package/dist/nextjs/nextjs-installer-agent.js.map +0 -1
- package/dist/nextjs/utils.d.ts +0 -4
- package/dist/nextjs/utils.js +0 -5
- package/dist/nextjs/utils.js.map +0 -1
- package/dist/react/react-installer-agent.d.ts +0 -4
- package/dist/react/react-installer-agent.js +0 -5
- package/dist/react/react-installer-agent.js.map +0 -1
- package/dist/react-router/react-router-installer-agent.d.ts +0 -4
- package/dist/react-router/react-router-installer-agent.js +0 -5
- package/dist/react-router/react-router-installer-agent.js.map +0 -1
- package/dist/react-router/utils.d.ts +0 -4
- package/dist/react-router/utils.js +0 -5
- package/dist/react-router/utils.js.map +0 -1
- package/dist/run.d.ts +0 -33
- package/dist/run.js +0 -58
- package/dist/run.js.map +0 -1
- package/dist/smoke-test.ts +0 -881
- package/dist/steps/add-or-update-environment-variables.d.ts +0 -10
- package/dist/steps/add-or-update-environment-variables.js +0 -155
- package/dist/steps/add-or-update-environment-variables.js.map +0 -1
- package/dist/steps/index.d.ts +0 -3
- package/dist/steps/index.js +0 -4
- package/dist/steps/index.js.map +0 -1
- package/dist/steps/run-prettier.d.ts +0 -5
- package/dist/steps/run-prettier.js +0 -50
- package/dist/steps/run-prettier.js.map +0 -1
- package/dist/steps/upload-environment-variables/EnvironmentProvider.d.ts +0 -8
- package/dist/steps/upload-environment-variables/EnvironmentProvider.js +0 -7
- package/dist/steps/upload-environment-variables/EnvironmentProvider.js.map +0 -1
- package/dist/steps/upload-environment-variables/index.d.ts +0 -6
- package/dist/steps/upload-environment-variables/index.js +0 -69
- package/dist/steps/upload-environment-variables/index.js.map +0 -1
- package/dist/steps/upload-environment-variables/providers/vercel.d.ts +0 -14
- package/dist/steps/upload-environment-variables/providers/vercel.js +0 -107
- package/dist/steps/upload-environment-variables/providers/vercel.js.map +0 -1
- package/dist/tanstack-start/tanstack-start-installer-agent.d.ts +0 -4
- package/dist/tanstack-start/tanstack-start-installer-agent.js +0 -5
- package/dist/tanstack-start/tanstack-start-installer-agent.js.map +0 -1
- package/dist/telemetry.d.ts +0 -2
- package/dist/telemetry.js +0 -29
- package/dist/telemetry.js.map +0 -1
- package/dist/test/force-insecure-storage.d.ts +0 -1
- package/dist/test/force-insecure-storage.js +0 -9
- package/dist/test/force-insecure-storage.js.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -38
- package/dist/test/setup.js.map +0 -1
- package/dist/utils/analytics.d.ts +0 -66
- package/dist/utils/analytics.js +0 -330
- package/dist/utils/analytics.js.map +0 -1
- package/dist/utils/bash.d.ts +0 -2
- package/dist/utils/bash.js +0 -17
- package/dist/utils/bash.js.map +0 -1
- package/dist/utils/box.d.ts +0 -9
- package/dist/utils/box.js +0 -15
- package/dist/utils/box.js.map +0 -1
- package/dist/utils/cli-exit.d.ts +0 -15
- package/dist/utils/cli-exit.js +0 -11
- package/dist/utils/cli-exit.js.map +0 -1
- package/dist/utils/cli-symbols.d.ts +0 -44
- package/dist/utils/cli-symbols.js +0 -58
- package/dist/utils/cli-symbols.js.map +0 -1
- package/dist/utils/command-invocation.d.ts +0 -10
- package/dist/utils/command-invocation.js +0 -26
- package/dist/utils/command-invocation.js.map +0 -1
- package/dist/utils/command-telemetry.d.ts +0 -17
- package/dist/utils/command-telemetry.js +0 -67
- package/dist/utils/command-telemetry.js.map +0 -1
- package/dist/utils/crash-reporter.d.ts +0 -13
- package/dist/utils/crash-reporter.js +0 -91
- package/dist/utils/crash-reporter.js.map +0 -1
- package/dist/utils/debug.d.ts +0 -9
- package/dist/utils/debug.js +0 -105
- package/dist/utils/debug.js.map +0 -1
- package/dist/utils/env-parser.d.ts +0 -5
- package/dist/utils/env-parser.js +0 -18
- package/dist/utils/env-parser.js.map +0 -1
- package/dist/utils/environment.d.ts +0 -10
- package/dist/utils/environment.js +0 -69
- package/dist/utils/environment.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -3
- package/dist/utils/errors.js +0 -7
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/exec-file.d.ts +0 -15
- package/dist/utils/exec-file.js +0 -39
- package/dist/utils/exec-file.js.map +0 -1
- package/dist/utils/exit-codes.d.ts +0 -31
- package/dist/utils/exit-codes.js +0 -69
- package/dist/utils/exit-codes.js.map +0 -1
- package/dist/utils/git-utils.d.ts +0 -23
- package/dist/utils/git-utils.js +0 -86
- package/dist/utils/git-utils.js.map +0 -1
- package/dist/utils/help-json.d.ts +0 -58
- package/dist/utils/help-json.js +0 -1577
- package/dist/utils/help-json.js.map +0 -1
- package/dist/utils/interaction-mode.d.ts +0 -25
- package/dist/utils/interaction-mode.js +0 -99
- package/dist/utils/interaction-mode.js.map +0 -1
- package/dist/utils/lock-art.d.ts +0 -4
- package/dist/utils/lock-art.js +0 -73
- package/dist/utils/lock-art.js.map +0 -1
- package/dist/utils/logging.d.ts +0 -9
- package/dist/utils/logging.js +0 -36
- package/dist/utils/logging.js.map +0 -1
- package/dist/utils/ndjson.d.ts +0 -16
- package/dist/utils/ndjson.js +0 -18
- package/dist/utils/ndjson.js.map +0 -1
- package/dist/utils/output.d.ts +0 -60
- package/dist/utils/output.js +0 -124
- package/dist/utils/output.js.map +0 -1
- package/dist/utils/package-json.d.ts +0 -26
- package/dist/utils/package-json.js +0 -32
- package/dist/utils/package-json.js.map +0 -1
- package/dist/utils/package-manager.d.ts +0 -21
- package/dist/utils/package-manager.js +0 -166
- package/dist/utils/package-manager.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -5
- package/dist/utils/paths.js +0 -18
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/platform.d.ts +0 -8
- package/dist/utils/platform.js +0 -7
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/recovery-hints.d.ts +0 -42
- package/dist/utils/recovery-hints.js +0 -92
- package/dist/utils/recovery-hints.js.map +0 -1
- package/dist/utils/redact.d.ts +0 -5
- package/dist/utils/redact.js +0 -29
- package/dist/utils/redact.js.map +0 -1
- package/dist/utils/register-subcommand.d.ts +0 -10
- package/dist/utils/register-subcommand.js +0 -33
- package/dist/utils/register-subcommand.js.map +0 -1
- package/dist/utils/semver.d.ts +0 -10
- package/dist/utils/semver.js +0 -43
- package/dist/utils/semver.js.map +0 -1
- package/dist/utils/string.d.ts +0 -1
- package/dist/utils/string.js +0 -6
- package/dist/utils/string.js.map +0 -1
- package/dist/utils/summary-box.d.ts +0 -25
- package/dist/utils/summary-box.js +0 -211
- package/dist/utils/summary-box.js.map +0 -1
- package/dist/utils/table.d.ts +0 -5
- package/dist/utils/table.js +0 -18
- package/dist/utils/table.js.map +0 -1
- package/dist/utils/telemetry-client.d.ts +0 -43
- package/dist/utils/telemetry-client.js +0 -171
- package/dist/utils/telemetry-client.js.map +0 -1
- package/dist/utils/telemetry-store-forward.d.ts +0 -11
- package/dist/utils/telemetry-store-forward.js +0 -94
- package/dist/utils/telemetry-store-forward.js.map +0 -1
- package/dist/utils/telemetry-types.d.ts +0 -100
- package/dist/utils/telemetry-types.js +0 -6
- package/dist/utils/telemetry-types.js.map +0 -1
- package/dist/utils/types.d.ts +0 -123
- package/dist/utils/types.js +0 -2
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/ui-utils.d.ts +0 -97
- package/dist/utils/ui-utils.js +0 -449
- package/dist/utils/ui-utils.js.map +0 -1
- package/dist/utils/ui.d.ts +0 -148
- package/dist/utils/ui.js +0 -368
- package/dist/utils/ui.js.map +0 -1
- package/dist/utils/urls.d.ts +0 -13
- package/dist/utils/urls.js +0 -14
- package/dist/utils/urls.js.map +0 -1
- package/dist/utils/vendor/is-unicorn-supported.d.ts +0 -1
- package/dist/utils/vendor/is-unicorn-supported.js +0 -21
- package/dist/utils/vendor/is-unicorn-supported.js.map +0 -1
- package/dist/vanilla-js/vanilla-js-installer-agent.d.ts +0 -4
- package/dist/vanilla-js/vanilla-js-installer-agent.js +0 -5
- package/dist/vanilla-js/vanilla-js-installer-agent.js.map +0 -1
package/dist/utils/help-json.js
DELETED
|
@@ -1,1577 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent-discoverable help: machine-readable command tree for --help --json.
|
|
3
|
-
*
|
|
4
|
-
* Static command registry mirroring bin.ts yargs definitions.
|
|
5
|
-
* yargs v18 doesn't expose public APIs for command introspection,
|
|
6
|
-
* so we maintain a parallel typed registry.
|
|
7
|
-
*/
|
|
8
|
-
import { getVersion } from '../lib/settings.js';
|
|
9
|
-
import { COMMAND_ALIASES } from '../lib/command-aliases.js';
|
|
10
|
-
import { MIGRATIONS_DESCRIPTION } from '../lib/constants.js';
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
// Shared option fragments (mirrors bin.ts shared option objects)
|
|
13
|
-
// ---------------------------------------------------------------------------
|
|
14
|
-
const insecureStorageOpt = {
|
|
15
|
-
name: 'insecure-storage',
|
|
16
|
-
type: 'boolean',
|
|
17
|
-
description: 'Store credentials in plaintext file instead of system keyring',
|
|
18
|
-
required: false,
|
|
19
|
-
default: false,
|
|
20
|
-
hidden: false,
|
|
21
|
-
};
|
|
22
|
-
const apiKeyOpt = {
|
|
23
|
-
name: 'api-key',
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'WorkOS API key (overrides environment config). Format: sk_live_* or sk_test_*',
|
|
26
|
-
required: false,
|
|
27
|
-
hidden: false,
|
|
28
|
-
};
|
|
29
|
-
const paginationOpts = [
|
|
30
|
-
{ name: 'limit', type: 'number', description: 'Maximum number of results to return', required: false, hidden: false },
|
|
31
|
-
{
|
|
32
|
-
name: 'before',
|
|
33
|
-
type: 'string',
|
|
34
|
-
description: 'Pagination cursor for results before a specific item',
|
|
35
|
-
required: false,
|
|
36
|
-
hidden: false,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'after',
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: 'Pagination cursor for results after a specific item',
|
|
42
|
-
required: false,
|
|
43
|
-
hidden: false,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'order',
|
|
47
|
-
type: 'string',
|
|
48
|
-
description: 'Sort order (asc or desc)',
|
|
49
|
-
required: false,
|
|
50
|
-
choices: ['asc', 'desc'],
|
|
51
|
-
hidden: false,
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
// ---------------------------------------------------------------------------
|
|
55
|
-
// Command registry
|
|
56
|
-
// ---------------------------------------------------------------------------
|
|
57
|
-
const commands = [
|
|
58
|
-
{
|
|
59
|
-
name: 'auth login',
|
|
60
|
-
description: 'Authenticate with WorkOS via browser-based OAuth',
|
|
61
|
-
options: [insecureStorageOpt],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'auth logout',
|
|
65
|
-
description: 'Remove stored WorkOS credentials and tokens',
|
|
66
|
-
options: [insecureStorageOpt],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: 'auth status',
|
|
70
|
-
description: 'Show current authentication status',
|
|
71
|
-
options: [insecureStorageOpt],
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'telemetry',
|
|
75
|
-
description: 'Manage telemetry collection (opt-out, opt-in, status)',
|
|
76
|
-
commands: [
|
|
77
|
-
{ name: 'opt-out', description: 'Disable telemetry collection (persists across runs)' },
|
|
78
|
-
{ name: 'opt-in', description: 'Re-enable telemetry collection' },
|
|
79
|
-
{ name: 'status', description: 'Show whether telemetry is enabled and why' },
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'skills',
|
|
84
|
-
description: 'Manage WorkOS skills for coding agents (Claude Code, Codex, Cursor, Goose)',
|
|
85
|
-
commands: [
|
|
86
|
-
{
|
|
87
|
-
name: 'install',
|
|
88
|
-
description: 'Install bundled AuthKit skills to coding agents',
|
|
89
|
-
options: [
|
|
90
|
-
{
|
|
91
|
-
name: 'skill',
|
|
92
|
-
type: 'array',
|
|
93
|
-
description: 'Install specific skill(s) by name',
|
|
94
|
-
required: false,
|
|
95
|
-
alias: 's',
|
|
96
|
-
hidden: false,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'agent',
|
|
100
|
-
type: 'array',
|
|
101
|
-
description: 'Target specific agent(s): claude-code, codex, cursor, goose',
|
|
102
|
-
required: false,
|
|
103
|
-
alias: 'a',
|
|
104
|
-
hidden: false,
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: 'uninstall',
|
|
110
|
-
description: 'Remove installed WorkOS skills from coding agents',
|
|
111
|
-
options: [
|
|
112
|
-
{
|
|
113
|
-
name: 'skill',
|
|
114
|
-
type: 'array',
|
|
115
|
-
description: 'Remove specific skill(s) by name',
|
|
116
|
-
required: false,
|
|
117
|
-
alias: 's',
|
|
118
|
-
hidden: false,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'agent',
|
|
122
|
-
type: 'array',
|
|
123
|
-
description: 'Target specific agent(s): claude-code, codex, cursor, goose',
|
|
124
|
-
required: false,
|
|
125
|
-
alias: 'a',
|
|
126
|
-
hidden: false,
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'list',
|
|
132
|
-
description: 'List available and installed skills',
|
|
133
|
-
options: [
|
|
134
|
-
{
|
|
135
|
-
name: 'agent',
|
|
136
|
-
type: 'array',
|
|
137
|
-
description: 'Target specific agent(s): claude-code, codex, cursor, goose',
|
|
138
|
-
required: false,
|
|
139
|
-
alias: 'a',
|
|
140
|
-
hidden: false,
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'mcp',
|
|
148
|
-
description: 'Manage the WorkOS MCP server in coding agents (Claude Code, Codex, Cursor)',
|
|
149
|
-
commands: [
|
|
150
|
-
{
|
|
151
|
-
name: 'install',
|
|
152
|
-
description: 'Add the WorkOS MCP server to detected coding agents',
|
|
153
|
-
options: [
|
|
154
|
-
{
|
|
155
|
-
name: 'agent',
|
|
156
|
-
type: 'array',
|
|
157
|
-
description: 'Target specific agent(s): claude-code, codex, cursor',
|
|
158
|
-
required: false,
|
|
159
|
-
alias: 'a',
|
|
160
|
-
hidden: false,
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: 'remove',
|
|
166
|
-
description: 'Remove the WorkOS MCP server from coding agents',
|
|
167
|
-
options: [
|
|
168
|
-
{
|
|
169
|
-
name: 'agent',
|
|
170
|
-
type: 'array',
|
|
171
|
-
description: 'Target specific agent(s): claude-code, codex, cursor',
|
|
172
|
-
required: false,
|
|
173
|
-
alias: 'a',
|
|
174
|
-
hidden: false,
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
name: 'status',
|
|
180
|
-
description: 'Show which coding agents have the WorkOS MCP server configured',
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
name: 'doctor',
|
|
186
|
-
description: 'Diagnose WorkOS AuthKit integration issues in the current project',
|
|
187
|
-
options: [
|
|
188
|
-
{
|
|
189
|
-
name: 'verbose',
|
|
190
|
-
type: 'boolean',
|
|
191
|
-
description: 'Include additional diagnostic information',
|
|
192
|
-
required: false,
|
|
193
|
-
default: false,
|
|
194
|
-
hidden: false,
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: 'skip-api',
|
|
198
|
-
type: 'boolean',
|
|
199
|
-
description: 'Skip API calls (offline mode)',
|
|
200
|
-
required: false,
|
|
201
|
-
default: false,
|
|
202
|
-
hidden: false,
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name: 'skip-ai',
|
|
206
|
-
type: 'boolean',
|
|
207
|
-
description: 'Skip AI-powered analysis',
|
|
208
|
-
required: false,
|
|
209
|
-
default: false,
|
|
210
|
-
hidden: false,
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'install-dir',
|
|
214
|
-
type: 'string',
|
|
215
|
-
description: 'Project directory to analyze (defaults to cwd)',
|
|
216
|
-
required: false,
|
|
217
|
-
hidden: false,
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: 'json',
|
|
221
|
-
type: 'boolean',
|
|
222
|
-
description: 'Output diagnostic report as JSON',
|
|
223
|
-
required: false,
|
|
224
|
-
default: false,
|
|
225
|
-
hidden: false,
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
name: 'copy',
|
|
229
|
-
type: 'boolean',
|
|
230
|
-
description: 'Copy diagnostic report to clipboard',
|
|
231
|
-
required: false,
|
|
232
|
-
default: false,
|
|
233
|
-
hidden: false,
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: 'fix',
|
|
237
|
-
type: 'boolean',
|
|
238
|
-
description: 'Auto-update stale WorkOS skills (writes to <agent>/skills/workos/ and workos-widgets/ only)',
|
|
239
|
-
required: false,
|
|
240
|
-
default: false,
|
|
241
|
-
hidden: false,
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: 'verify-login',
|
|
247
|
-
description: 'Verify the AuthKit login loop end-to-end against the active environment (creates and deletes a throwaway user)',
|
|
248
|
-
options: [
|
|
249
|
-
insecureStorageOpt,
|
|
250
|
-
apiKeyOpt,
|
|
251
|
-
{
|
|
252
|
-
name: 'client-id',
|
|
253
|
-
type: 'string',
|
|
254
|
-
description: 'WorkOS client ID (overrides the active environment)',
|
|
255
|
-
required: false,
|
|
256
|
-
hidden: false,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
name: 'method',
|
|
260
|
-
type: 'string',
|
|
261
|
-
description: 'Authentication method to verify',
|
|
262
|
-
required: false,
|
|
263
|
-
default: 'password',
|
|
264
|
-
choices: ['password'],
|
|
265
|
-
hidden: false,
|
|
266
|
-
},
|
|
267
|
-
],
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
name: 'env',
|
|
271
|
-
description: 'Manage environment configurations (API keys, endpoints, active environment)',
|
|
272
|
-
options: [insecureStorageOpt],
|
|
273
|
-
commands: [
|
|
274
|
-
{
|
|
275
|
-
name: 'add',
|
|
276
|
-
description: 'Add a new environment configuration with API key and optional settings',
|
|
277
|
-
positionals: [
|
|
278
|
-
{
|
|
279
|
-
name: 'name',
|
|
280
|
-
type: 'string',
|
|
281
|
-
description: 'Environment name (lowercase, hyphens, underscores)',
|
|
282
|
-
required: false,
|
|
283
|
-
},
|
|
284
|
-
{ name: 'apiKey', type: 'string', description: 'WorkOS API key (sk_live_* or sk_test_*)', required: false },
|
|
285
|
-
],
|
|
286
|
-
options: [
|
|
287
|
-
{
|
|
288
|
-
name: 'client-id',
|
|
289
|
-
type: 'string',
|
|
290
|
-
description: 'WorkOS client ID for this environment',
|
|
291
|
-
required: false,
|
|
292
|
-
hidden: false,
|
|
293
|
-
},
|
|
294
|
-
{ name: 'endpoint', type: 'string', description: 'Custom API endpoint URL', required: false, hidden: false },
|
|
295
|
-
],
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
name: 'remove',
|
|
299
|
-
description: 'Remove an environment from local CLI config (does not delete or unclaim the environment in WorkOS)',
|
|
300
|
-
positionals: [{ name: 'name', type: 'string', description: 'Environment name to remove', required: true }],
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
name: 'switch',
|
|
304
|
-
description: 'Switch the active environment (determines which API key is used)',
|
|
305
|
-
positionals: [{ name: 'name', type: 'string', description: 'Environment name to activate', required: false }],
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: 'list',
|
|
309
|
-
description: 'List all configured environments and show which is active',
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
name: 'claim',
|
|
313
|
-
description: 'Claim an unclaimed WorkOS environment — link it to your account (permanent — cannot be undone)',
|
|
314
|
-
options: [
|
|
315
|
-
{
|
|
316
|
-
name: 'json',
|
|
317
|
-
type: 'boolean',
|
|
318
|
-
description: 'Output in JSON format',
|
|
319
|
-
required: false,
|
|
320
|
-
default: false,
|
|
321
|
-
hidden: false,
|
|
322
|
-
},
|
|
323
|
-
],
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
name: 'provision',
|
|
327
|
-
description: 'Provision a new unclaimed WorkOS environment (credentials only, no code changes)',
|
|
328
|
-
options: [
|
|
329
|
-
{
|
|
330
|
-
name: 'json',
|
|
331
|
-
type: 'boolean',
|
|
332
|
-
description: 'Output provisioned credentials (apiKey, clientId, claimToken) as JSON',
|
|
333
|
-
required: false,
|
|
334
|
-
default: false,
|
|
335
|
-
hidden: false,
|
|
336
|
-
},
|
|
337
|
-
],
|
|
338
|
-
},
|
|
339
|
-
],
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
name: 'api',
|
|
343
|
-
description: 'Make authenticated requests to the WorkOS API',
|
|
344
|
-
positionals: [
|
|
345
|
-
{
|
|
346
|
-
name: 'endpoint',
|
|
347
|
-
type: 'string',
|
|
348
|
-
description: "API endpoint path (e.g. /users), or 'ls' to list endpoints",
|
|
349
|
-
required: false,
|
|
350
|
-
},
|
|
351
|
-
{ name: 'filter', type: 'string', description: 'Filter keyword (used with ls)', required: false },
|
|
352
|
-
],
|
|
353
|
-
options: [
|
|
354
|
-
insecureStorageOpt,
|
|
355
|
-
{
|
|
356
|
-
name: 'method',
|
|
357
|
-
type: 'string',
|
|
358
|
-
description: 'HTTP method (default: GET, or POST if body provided)',
|
|
359
|
-
required: false,
|
|
360
|
-
alias: 'X',
|
|
361
|
-
hidden: false,
|
|
362
|
-
},
|
|
363
|
-
{ name: 'data', type: 'string', description: 'JSON request body', required: false, alias: 'd', hidden: false },
|
|
364
|
-
{
|
|
365
|
-
name: 'file',
|
|
366
|
-
type: 'string',
|
|
367
|
-
description: 'Read request body from a file (or - for stdin)',
|
|
368
|
-
required: false,
|
|
369
|
-
hidden: false,
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
name: 'include',
|
|
373
|
-
type: 'boolean',
|
|
374
|
-
description: 'Show response headers',
|
|
375
|
-
required: false,
|
|
376
|
-
default: false,
|
|
377
|
-
alias: 'i',
|
|
378
|
-
hidden: false,
|
|
379
|
-
},
|
|
380
|
-
apiKeyOpt,
|
|
381
|
-
{
|
|
382
|
-
name: 'dry-run',
|
|
383
|
-
type: 'boolean',
|
|
384
|
-
description: 'Show the request without executing it',
|
|
385
|
-
required: false,
|
|
386
|
-
default: false,
|
|
387
|
-
hidden: false,
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
name: 'yes',
|
|
391
|
-
type: 'boolean',
|
|
392
|
-
description: 'Skip confirmation for mutating requests',
|
|
393
|
-
required: false,
|
|
394
|
-
default: false,
|
|
395
|
-
alias: 'y',
|
|
396
|
-
hidden: false,
|
|
397
|
-
},
|
|
398
|
-
],
|
|
399
|
-
examples: [
|
|
400
|
-
'workos api ls',
|
|
401
|
-
'workos api ls users',
|
|
402
|
-
'workos api /user_management/users',
|
|
403
|
-
'workos api /organizations -d \'{"name":"Acme"}\'',
|
|
404
|
-
'workos api /organizations/org_123 -X DELETE',
|
|
405
|
-
],
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
name: 'organization',
|
|
409
|
-
description: 'Manage WorkOS organizations (create, update, get, list, delete)',
|
|
410
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
411
|
-
commands: [
|
|
412
|
-
{
|
|
413
|
-
name: 'create',
|
|
414
|
-
description: 'Create a new organization with optional verified domains',
|
|
415
|
-
positionals: [
|
|
416
|
-
{ name: 'name', type: 'string', description: 'Organization name', required: true },
|
|
417
|
-
{
|
|
418
|
-
name: 'domains',
|
|
419
|
-
type: 'string',
|
|
420
|
-
description: 'Domains in format domain:state (state defaults to verified)',
|
|
421
|
-
required: false,
|
|
422
|
-
},
|
|
423
|
-
],
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
name: 'update',
|
|
427
|
-
description: 'Update an existing organization name or domain',
|
|
428
|
-
positionals: [
|
|
429
|
-
{ name: 'orgId', type: 'string', description: 'Organization ID (org_*)', required: true },
|
|
430
|
-
{ name: 'name', type: 'string', description: 'New organization name', required: true },
|
|
431
|
-
{ name: 'domain', type: 'string', description: 'Domain to add or update', required: false },
|
|
432
|
-
{ name: 'state', type: 'string', description: 'Domain state (verified or pending)', required: false },
|
|
433
|
-
],
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
name: 'get',
|
|
437
|
-
description: 'Get an organization by its ID',
|
|
438
|
-
positionals: [{ name: 'orgId', type: 'string', description: 'Organization ID (org_*)', required: true }],
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
name: 'list',
|
|
442
|
-
description: 'List organizations with optional filters and pagination',
|
|
443
|
-
options: [
|
|
444
|
-
{
|
|
445
|
-
name: 'domain',
|
|
446
|
-
type: 'string',
|
|
447
|
-
description: 'Filter organizations by domain',
|
|
448
|
-
required: false,
|
|
449
|
-
hidden: false,
|
|
450
|
-
},
|
|
451
|
-
...paginationOpts,
|
|
452
|
-
],
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
name: 'delete',
|
|
456
|
-
description: 'Delete an organization by its ID',
|
|
457
|
-
positionals: [{ name: 'orgId', type: 'string', description: 'Organization ID (org_*)', required: true }],
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
name: 'user',
|
|
463
|
-
description: 'Manage WorkOS user management users (get, list, update, delete)',
|
|
464
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
465
|
-
commands: [
|
|
466
|
-
{
|
|
467
|
-
name: 'get',
|
|
468
|
-
description: 'Get a user by their ID',
|
|
469
|
-
positionals: [{ name: 'userId', type: 'string', description: 'User ID (user_*)', required: true }],
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
name: 'list',
|
|
473
|
-
description: 'List users with optional filters and pagination',
|
|
474
|
-
options: [
|
|
475
|
-
{
|
|
476
|
-
name: 'email',
|
|
477
|
-
type: 'string',
|
|
478
|
-
description: 'Filter users by email address',
|
|
479
|
-
required: false,
|
|
480
|
-
hidden: false,
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: 'organization',
|
|
484
|
-
type: 'string',
|
|
485
|
-
description: 'Filter users by organization ID',
|
|
486
|
-
required: false,
|
|
487
|
-
hidden: false,
|
|
488
|
-
},
|
|
489
|
-
...paginationOpts,
|
|
490
|
-
],
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
name: 'update',
|
|
494
|
-
description: 'Update user properties (name, email verification, password, external ID)',
|
|
495
|
-
positionals: [{ name: 'userId', type: 'string', description: 'User ID (user_*)', required: true }],
|
|
496
|
-
options: [
|
|
497
|
-
{ name: 'first-name', type: 'string', description: 'First name', required: false, hidden: false },
|
|
498
|
-
{ name: 'last-name', type: 'string', description: 'Last name', required: false, hidden: false },
|
|
499
|
-
{
|
|
500
|
-
name: 'email-verified',
|
|
501
|
-
type: 'boolean',
|
|
502
|
-
description: 'Email verification status',
|
|
503
|
-
required: false,
|
|
504
|
-
hidden: false,
|
|
505
|
-
},
|
|
506
|
-
{ name: 'password', type: 'string', description: 'New password', required: false, hidden: false },
|
|
507
|
-
{
|
|
508
|
-
name: 'external-id',
|
|
509
|
-
type: 'string',
|
|
510
|
-
description: 'External ID for cross-system mapping',
|
|
511
|
-
required: false,
|
|
512
|
-
hidden: false,
|
|
513
|
-
},
|
|
514
|
-
],
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
name: 'delete',
|
|
518
|
-
description: 'Delete a user by their ID',
|
|
519
|
-
positionals: [{ name: 'userId', type: 'string', description: 'User ID (user_*)', required: true }],
|
|
520
|
-
},
|
|
521
|
-
],
|
|
522
|
-
},
|
|
523
|
-
// --- Resource Management Commands ---
|
|
524
|
-
{
|
|
525
|
-
name: 'role',
|
|
526
|
-
description: 'Manage WorkOS roles (environment and organization-scoped)',
|
|
527
|
-
options: [
|
|
528
|
-
insecureStorageOpt,
|
|
529
|
-
apiKeyOpt,
|
|
530
|
-
{
|
|
531
|
-
name: 'org',
|
|
532
|
-
type: 'string',
|
|
533
|
-
description: 'Organization ID (for org-scoped roles)',
|
|
534
|
-
required: false,
|
|
535
|
-
hidden: false,
|
|
536
|
-
},
|
|
537
|
-
],
|
|
538
|
-
commands: [
|
|
539
|
-
{ name: 'list', description: 'List roles', options: [] },
|
|
540
|
-
{
|
|
541
|
-
name: 'get',
|
|
542
|
-
description: 'Get a role by slug',
|
|
543
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Role slug', required: true }],
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
name: 'create',
|
|
547
|
-
description: 'Create a role',
|
|
548
|
-
options: [
|
|
549
|
-
{ name: 'slug', type: 'string', description: 'Role slug', required: true, hidden: false },
|
|
550
|
-
{ name: 'name', type: 'string', description: 'Role name', required: true, hidden: false },
|
|
551
|
-
{ name: 'description', type: 'string', description: 'Role description', required: false, hidden: false },
|
|
552
|
-
],
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
name: 'update',
|
|
556
|
-
description: 'Update a role',
|
|
557
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Role slug', required: true }],
|
|
558
|
-
options: [
|
|
559
|
-
{ name: 'name', type: 'string', description: 'New name', required: false, hidden: false },
|
|
560
|
-
{ name: 'description', type: 'string', description: 'New description', required: false, hidden: false },
|
|
561
|
-
],
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
name: 'delete',
|
|
565
|
-
description: 'Delete an org-scoped role (requires --org)',
|
|
566
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Role slug', required: true }],
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
name: 'set-permissions',
|
|
570
|
-
description: 'Set all permissions on a role (replaces existing)',
|
|
571
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Role slug', required: true }],
|
|
572
|
-
options: [
|
|
573
|
-
{
|
|
574
|
-
name: 'permissions',
|
|
575
|
-
type: 'string',
|
|
576
|
-
description: 'Comma-separated permission slugs',
|
|
577
|
-
required: true,
|
|
578
|
-
hidden: false,
|
|
579
|
-
},
|
|
580
|
-
],
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: 'add-permission',
|
|
584
|
-
description: 'Add a permission to a role',
|
|
585
|
-
positionals: [
|
|
586
|
-
{ name: 'slug', type: 'string', description: 'Role slug', required: true },
|
|
587
|
-
{ name: 'permissionSlug', type: 'string', description: 'Permission slug', required: true },
|
|
588
|
-
],
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: 'remove-permission',
|
|
592
|
-
description: 'Remove a permission from an org role (requires --org)',
|
|
593
|
-
positionals: [
|
|
594
|
-
{ name: 'slug', type: 'string', description: 'Role slug', required: true },
|
|
595
|
-
{ name: 'permissionSlug', type: 'string', description: 'Permission slug', required: true },
|
|
596
|
-
],
|
|
597
|
-
},
|
|
598
|
-
],
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
name: 'permission',
|
|
602
|
-
description: 'Manage WorkOS permissions',
|
|
603
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
604
|
-
commands: [
|
|
605
|
-
{ name: 'list', description: 'List permissions', options: [...paginationOpts] },
|
|
606
|
-
{
|
|
607
|
-
name: 'get',
|
|
608
|
-
description: 'Get a permission',
|
|
609
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Permission slug', required: true }],
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
name: 'create',
|
|
613
|
-
description: 'Create a permission',
|
|
614
|
-
options: [
|
|
615
|
-
{ name: 'slug', type: 'string', description: 'Permission slug', required: true, hidden: false },
|
|
616
|
-
{ name: 'name', type: 'string', description: 'Permission name', required: true, hidden: false },
|
|
617
|
-
{
|
|
618
|
-
name: 'description',
|
|
619
|
-
type: 'string',
|
|
620
|
-
description: 'Permission description',
|
|
621
|
-
required: false,
|
|
622
|
-
hidden: false,
|
|
623
|
-
},
|
|
624
|
-
],
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
name: 'update',
|
|
628
|
-
description: 'Update a permission',
|
|
629
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Permission slug', required: true }],
|
|
630
|
-
options: [
|
|
631
|
-
{ name: 'name', type: 'string', description: 'New name', required: false, hidden: false },
|
|
632
|
-
{ name: 'description', type: 'string', description: 'New description', required: false, hidden: false },
|
|
633
|
-
],
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
name: 'delete',
|
|
637
|
-
description: 'Delete a permission',
|
|
638
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Permission slug', required: true }],
|
|
639
|
-
},
|
|
640
|
-
],
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
name: 'membership',
|
|
644
|
-
description: 'Manage organization memberships',
|
|
645
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
646
|
-
commands: [
|
|
647
|
-
{
|
|
648
|
-
name: 'list',
|
|
649
|
-
description: 'List memberships',
|
|
650
|
-
options: [
|
|
651
|
-
{ name: 'org', type: 'string', description: 'Filter by organization ID', required: false, hidden: false },
|
|
652
|
-
{ name: 'user', type: 'string', description: 'Filter by user ID', required: false, hidden: false },
|
|
653
|
-
...paginationOpts,
|
|
654
|
-
],
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
name: 'get',
|
|
658
|
-
description: 'Get a membership',
|
|
659
|
-
positionals: [{ name: 'id', type: 'string', description: 'Membership ID', required: true }],
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
name: 'create',
|
|
663
|
-
description: 'Create a membership',
|
|
664
|
-
options: [
|
|
665
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
666
|
-
{ name: 'user', type: 'string', description: 'User ID', required: true, hidden: false },
|
|
667
|
-
{ name: 'role', type: 'string', description: 'Role slug', required: false, hidden: false },
|
|
668
|
-
],
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
name: 'update',
|
|
672
|
-
description: 'Update a membership',
|
|
673
|
-
positionals: [{ name: 'id', type: 'string', description: 'Membership ID', required: true }],
|
|
674
|
-
options: [{ name: 'role', type: 'string', description: 'New role slug', required: false, hidden: false }],
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
name: 'delete',
|
|
678
|
-
description: 'Delete a membership',
|
|
679
|
-
positionals: [{ name: 'id', type: 'string', description: 'Membership ID', required: true }],
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
name: 'deactivate',
|
|
683
|
-
description: 'Deactivate a membership',
|
|
684
|
-
positionals: [{ name: 'id', type: 'string', description: 'Membership ID', required: true }],
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
name: 'reactivate',
|
|
688
|
-
description: 'Reactivate a membership',
|
|
689
|
-
positionals: [{ name: 'id', type: 'string', description: 'Membership ID', required: true }],
|
|
690
|
-
},
|
|
691
|
-
],
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
name: 'invitation',
|
|
695
|
-
description: 'Manage user invitations',
|
|
696
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
697
|
-
commands: [
|
|
698
|
-
{
|
|
699
|
-
name: 'list',
|
|
700
|
-
description: 'List invitations',
|
|
701
|
-
options: [
|
|
702
|
-
{ name: 'org', type: 'string', description: 'Filter by organization ID', required: false, hidden: false },
|
|
703
|
-
{ name: 'email', type: 'string', description: 'Filter by email', required: false, hidden: false },
|
|
704
|
-
...paginationOpts,
|
|
705
|
-
],
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
name: 'get',
|
|
709
|
-
description: 'Get an invitation',
|
|
710
|
-
positionals: [{ name: 'id', type: 'string', description: 'Invitation ID', required: true }],
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
name: 'send',
|
|
714
|
-
description: 'Send an invitation',
|
|
715
|
-
options: [
|
|
716
|
-
{ name: 'email', type: 'string', description: 'Email address', required: true, hidden: false },
|
|
717
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: false, hidden: false },
|
|
718
|
-
{ name: 'role', type: 'string', description: 'Role slug', required: false, hidden: false },
|
|
719
|
-
{
|
|
720
|
-
name: 'expires-in-days',
|
|
721
|
-
type: 'number',
|
|
722
|
-
description: 'Expiration in days',
|
|
723
|
-
required: false,
|
|
724
|
-
hidden: false,
|
|
725
|
-
},
|
|
726
|
-
],
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
name: 'revoke',
|
|
730
|
-
description: 'Revoke an invitation',
|
|
731
|
-
positionals: [{ name: 'id', type: 'string', description: 'Invitation ID', required: true }],
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
name: 'resend',
|
|
735
|
-
description: 'Resend an invitation',
|
|
736
|
-
positionals: [{ name: 'id', type: 'string', description: 'Invitation ID', required: true }],
|
|
737
|
-
},
|
|
738
|
-
],
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
name: 'session',
|
|
742
|
-
description: 'Manage user sessions',
|
|
743
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
744
|
-
commands: [
|
|
745
|
-
{
|
|
746
|
-
name: 'list',
|
|
747
|
-
description: 'List sessions for a user',
|
|
748
|
-
positionals: [{ name: 'userId', type: 'string', description: 'User ID', required: true }],
|
|
749
|
-
options: [...paginationOpts],
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
name: 'revoke',
|
|
753
|
-
description: 'Revoke a session',
|
|
754
|
-
positionals: [{ name: 'sessionId', type: 'string', description: 'Session ID', required: true }],
|
|
755
|
-
},
|
|
756
|
-
],
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
name: 'connection',
|
|
760
|
-
description: 'Manage SSO connections (read/delete)',
|
|
761
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
762
|
-
commands: [
|
|
763
|
-
{
|
|
764
|
-
name: 'list',
|
|
765
|
-
description: 'List connections',
|
|
766
|
-
options: [
|
|
767
|
-
{ name: 'org', type: 'string', description: 'Filter by organization ID', required: false, hidden: false },
|
|
768
|
-
{ name: 'type', type: 'string', description: 'Filter by connection type', required: false, hidden: false },
|
|
769
|
-
...paginationOpts,
|
|
770
|
-
],
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
name: 'get',
|
|
774
|
-
description: 'Get a connection',
|
|
775
|
-
positionals: [{ name: 'id', type: 'string', description: 'Connection ID', required: true }],
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
name: 'delete',
|
|
779
|
-
description: 'Delete a connection',
|
|
780
|
-
positionals: [{ name: 'id', type: 'string', description: 'Connection ID', required: true }],
|
|
781
|
-
options: [
|
|
782
|
-
{
|
|
783
|
-
name: 'force',
|
|
784
|
-
type: 'boolean',
|
|
785
|
-
description: 'Skip confirmation prompt',
|
|
786
|
-
required: false,
|
|
787
|
-
default: false,
|
|
788
|
-
hidden: false,
|
|
789
|
-
},
|
|
790
|
-
],
|
|
791
|
-
},
|
|
792
|
-
],
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
name: 'directory',
|
|
796
|
-
description: 'Manage directory sync (read/delete, list users/groups)',
|
|
797
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
798
|
-
commands: [
|
|
799
|
-
{
|
|
800
|
-
name: 'list',
|
|
801
|
-
description: 'List directories',
|
|
802
|
-
options: [
|
|
803
|
-
{ name: 'org', type: 'string', description: 'Filter by organization ID', required: false, hidden: false },
|
|
804
|
-
...paginationOpts,
|
|
805
|
-
],
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
name: 'get',
|
|
809
|
-
description: 'Get a directory',
|
|
810
|
-
positionals: [{ name: 'id', type: 'string', description: 'Directory ID', required: true }],
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
name: 'delete',
|
|
814
|
-
description: 'Delete a directory',
|
|
815
|
-
positionals: [{ name: 'id', type: 'string', description: 'Directory ID', required: true }],
|
|
816
|
-
options: [
|
|
817
|
-
{
|
|
818
|
-
name: 'force',
|
|
819
|
-
type: 'boolean',
|
|
820
|
-
description: 'Skip confirmation prompt',
|
|
821
|
-
required: false,
|
|
822
|
-
default: false,
|
|
823
|
-
hidden: false,
|
|
824
|
-
},
|
|
825
|
-
],
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
name: 'list-users',
|
|
829
|
-
description: 'List directory users',
|
|
830
|
-
options: [
|
|
831
|
-
{ name: 'directory', type: 'string', description: 'Directory ID', required: false, hidden: false },
|
|
832
|
-
{ name: 'group', type: 'string', description: 'Group ID', required: false, hidden: false },
|
|
833
|
-
...paginationOpts,
|
|
834
|
-
],
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
name: 'list-groups',
|
|
838
|
-
description: 'List directory groups',
|
|
839
|
-
options: [
|
|
840
|
-
{ name: 'directory', type: 'string', description: 'Directory ID', required: true, hidden: false },
|
|
841
|
-
...paginationOpts,
|
|
842
|
-
],
|
|
843
|
-
},
|
|
844
|
-
],
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
name: 'event',
|
|
848
|
-
description: 'Query WorkOS events',
|
|
849
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
850
|
-
commands: [
|
|
851
|
-
{
|
|
852
|
-
name: 'list',
|
|
853
|
-
description: 'List events',
|
|
854
|
-
options: [
|
|
855
|
-
{
|
|
856
|
-
name: 'events',
|
|
857
|
-
type: 'string',
|
|
858
|
-
description: 'Comma-separated event types (required)',
|
|
859
|
-
required: true,
|
|
860
|
-
hidden: false,
|
|
861
|
-
},
|
|
862
|
-
{ name: 'org', type: 'string', description: 'Filter by organization ID', required: false, hidden: false },
|
|
863
|
-
{
|
|
864
|
-
name: 'range-start',
|
|
865
|
-
type: 'string',
|
|
866
|
-
description: 'Range start (ISO date)',
|
|
867
|
-
required: false,
|
|
868
|
-
hidden: false,
|
|
869
|
-
},
|
|
870
|
-
{ name: 'range-end', type: 'string', description: 'Range end (ISO date)', required: false, hidden: false },
|
|
871
|
-
...paginationOpts,
|
|
872
|
-
],
|
|
873
|
-
},
|
|
874
|
-
],
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
name: 'audit-log',
|
|
878
|
-
description: 'Manage audit logs',
|
|
879
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
880
|
-
commands: [
|
|
881
|
-
{
|
|
882
|
-
name: 'create-event',
|
|
883
|
-
description: 'Create an audit log event',
|
|
884
|
-
positionals: [{ name: 'orgId', type: 'string', description: 'Organization ID', required: true }],
|
|
885
|
-
options: [
|
|
886
|
-
{ name: 'action', type: 'string', description: 'Action name', required: false, hidden: false },
|
|
887
|
-
{ name: 'actor-type', type: 'string', description: 'Actor type', required: false, hidden: false },
|
|
888
|
-
{ name: 'actor-id', type: 'string', description: 'Actor ID', required: false, hidden: false },
|
|
889
|
-
{ name: 'file', type: 'string', description: 'Path to event JSON file', required: false, hidden: false },
|
|
890
|
-
],
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
name: 'export',
|
|
894
|
-
description: 'Export audit logs',
|
|
895
|
-
options: [
|
|
896
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
897
|
-
{ name: 'range-start', type: 'string', description: 'Range start (ISO date)', required: true, hidden: false },
|
|
898
|
-
{ name: 'range-end', type: 'string', description: 'Range end (ISO date)', required: true, hidden: false },
|
|
899
|
-
],
|
|
900
|
-
},
|
|
901
|
-
{ name: 'list-actions', description: 'List available audit log actions' },
|
|
902
|
-
{
|
|
903
|
-
name: 'get-schema',
|
|
904
|
-
description: 'Get schema for an audit log action',
|
|
905
|
-
positionals: [{ name: 'action', type: 'string', description: 'Action name', required: true }],
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
name: 'create-schema',
|
|
909
|
-
description: 'Create an audit log schema',
|
|
910
|
-
positionals: [{ name: 'action', type: 'string', description: 'Action name', required: true }],
|
|
911
|
-
options: [
|
|
912
|
-
{ name: 'file', type: 'string', description: 'Path to schema JSON file', required: true, hidden: false },
|
|
913
|
-
],
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
name: 'get-retention',
|
|
917
|
-
description: 'Get audit log retention period',
|
|
918
|
-
positionals: [{ name: 'orgId', type: 'string', description: 'Organization ID', required: true }],
|
|
919
|
-
},
|
|
920
|
-
],
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
name: 'feature-flag',
|
|
924
|
-
description: 'Manage feature flags',
|
|
925
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
926
|
-
commands: [
|
|
927
|
-
{ name: 'list', description: 'List feature flags', options: [...paginationOpts] },
|
|
928
|
-
{
|
|
929
|
-
name: 'get',
|
|
930
|
-
description: 'Get a feature flag',
|
|
931
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Feature flag slug', required: true }],
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
name: 'enable',
|
|
935
|
-
description: 'Enable a feature flag',
|
|
936
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Feature flag slug', required: true }],
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
name: 'disable',
|
|
940
|
-
description: 'Disable a feature flag',
|
|
941
|
-
positionals: [{ name: 'slug', type: 'string', description: 'Feature flag slug', required: true }],
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
name: 'add-target',
|
|
945
|
-
description: 'Add a target to a feature flag',
|
|
946
|
-
positionals: [
|
|
947
|
-
{ name: 'slug', type: 'string', description: 'Feature flag slug', required: true },
|
|
948
|
-
{ name: 'targetId', type: 'string', description: 'Target ID', required: true },
|
|
949
|
-
],
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
name: 'remove-target',
|
|
953
|
-
description: 'Remove a target from a feature flag',
|
|
954
|
-
positionals: [
|
|
955
|
-
{ name: 'slug', type: 'string', description: 'Feature flag slug', required: true },
|
|
956
|
-
{ name: 'targetId', type: 'string', description: 'Target ID', required: true },
|
|
957
|
-
],
|
|
958
|
-
},
|
|
959
|
-
],
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
name: 'webhook',
|
|
963
|
-
description: 'Manage webhooks',
|
|
964
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
965
|
-
commands: [
|
|
966
|
-
{ name: 'list', description: 'List webhooks' },
|
|
967
|
-
{
|
|
968
|
-
name: 'create',
|
|
969
|
-
description: 'Create a webhook',
|
|
970
|
-
options: [
|
|
971
|
-
{ name: 'url', type: 'string', description: 'Webhook endpoint URL', required: true, hidden: false },
|
|
972
|
-
{ name: 'events', type: 'string', description: 'Comma-separated event types', required: true, hidden: false },
|
|
973
|
-
],
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
name: 'delete',
|
|
977
|
-
description: 'Delete a webhook',
|
|
978
|
-
positionals: [{ name: 'id', type: 'string', description: 'Webhook ID', required: true }],
|
|
979
|
-
},
|
|
980
|
-
],
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
name: 'config',
|
|
984
|
-
description: 'Manage WorkOS configuration (redirect URIs, CORS, homepage)',
|
|
985
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
986
|
-
commands: [
|
|
987
|
-
{
|
|
988
|
-
name: 'redirect',
|
|
989
|
-
description: 'Manage redirect URIs',
|
|
990
|
-
commands: [
|
|
991
|
-
{
|
|
992
|
-
name: 'add',
|
|
993
|
-
description: 'Add a redirect URI',
|
|
994
|
-
positionals: [{ name: 'uri', type: 'string', description: 'Redirect URI', required: true }],
|
|
995
|
-
},
|
|
996
|
-
],
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
name: 'cors',
|
|
1000
|
-
description: 'Manage CORS origins',
|
|
1001
|
-
commands: [
|
|
1002
|
-
{
|
|
1003
|
-
name: 'add',
|
|
1004
|
-
description: 'Add a CORS origin',
|
|
1005
|
-
positionals: [{ name: 'origin', type: 'string', description: 'CORS origin', required: true }],
|
|
1006
|
-
},
|
|
1007
|
-
],
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
name: 'homepage-url',
|
|
1011
|
-
description: 'Manage homepage URL',
|
|
1012
|
-
commands: [
|
|
1013
|
-
{
|
|
1014
|
-
name: 'set',
|
|
1015
|
-
description: 'Set the homepage URL',
|
|
1016
|
-
positionals: [{ name: 'url', type: 'string', description: 'Homepage URL', required: true }],
|
|
1017
|
-
},
|
|
1018
|
-
],
|
|
1019
|
-
},
|
|
1020
|
-
],
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
name: 'portal',
|
|
1024
|
-
description: 'Manage Admin Portal',
|
|
1025
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1026
|
-
commands: [
|
|
1027
|
-
{
|
|
1028
|
-
name: 'generate-link',
|
|
1029
|
-
description: 'Generate an Admin Portal link',
|
|
1030
|
-
options: [
|
|
1031
|
-
{
|
|
1032
|
-
name: 'intent',
|
|
1033
|
-
type: 'string',
|
|
1034
|
-
description: 'Portal intent (sso, dsync, audit_logs, log_streams)',
|
|
1035
|
-
required: true,
|
|
1036
|
-
hidden: false,
|
|
1037
|
-
},
|
|
1038
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
1039
|
-
{
|
|
1040
|
-
name: 'return-url',
|
|
1041
|
-
type: 'string',
|
|
1042
|
-
description: 'Return URL after portal',
|
|
1043
|
-
required: false,
|
|
1044
|
-
hidden: false,
|
|
1045
|
-
},
|
|
1046
|
-
{ name: 'success-url', type: 'string', description: 'Success URL', required: false, hidden: false },
|
|
1047
|
-
],
|
|
1048
|
-
},
|
|
1049
|
-
],
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
name: 'vault',
|
|
1053
|
-
description: 'Manage WorkOS Vault secrets',
|
|
1054
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1055
|
-
commands: [
|
|
1056
|
-
{ name: 'list', description: 'List vault objects', options: [...paginationOpts] },
|
|
1057
|
-
{
|
|
1058
|
-
name: 'get',
|
|
1059
|
-
description: 'Get a vault object (metadata only; use --decrypt to include value)',
|
|
1060
|
-
positionals: [{ name: 'id', type: 'string', description: 'Object ID', required: true }],
|
|
1061
|
-
options: [
|
|
1062
|
-
{
|
|
1063
|
-
name: 'decrypt',
|
|
1064
|
-
type: 'boolean',
|
|
1065
|
-
description: 'Include the decrypted secret value',
|
|
1066
|
-
required: false,
|
|
1067
|
-
default: false,
|
|
1068
|
-
hidden: false,
|
|
1069
|
-
},
|
|
1070
|
-
],
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
name: 'get-by-name',
|
|
1074
|
-
description: 'Get a vault object by name (metadata only; use --decrypt to include value)',
|
|
1075
|
-
positionals: [{ name: 'name', type: 'string', description: 'Object name', required: true }],
|
|
1076
|
-
options: [
|
|
1077
|
-
{
|
|
1078
|
-
name: 'decrypt',
|
|
1079
|
-
type: 'boolean',
|
|
1080
|
-
description: 'Include the decrypted secret value',
|
|
1081
|
-
required: false,
|
|
1082
|
-
default: false,
|
|
1083
|
-
hidden: false,
|
|
1084
|
-
},
|
|
1085
|
-
],
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
name: 'create',
|
|
1089
|
-
description: 'Create a vault object (reads value from stdin when --value is omitted or -)',
|
|
1090
|
-
options: [
|
|
1091
|
-
{ name: 'name', type: 'string', description: 'Object name', required: true, hidden: false },
|
|
1092
|
-
{
|
|
1093
|
-
name: 'value',
|
|
1094
|
-
type: 'string',
|
|
1095
|
-
description: 'Secret value (omit or use - to read from stdin)',
|
|
1096
|
-
required: false,
|
|
1097
|
-
hidden: false,
|
|
1098
|
-
},
|
|
1099
|
-
{ name: 'org', type: 'string', description: 'Organization ID (required)', required: true, hidden: false },
|
|
1100
|
-
],
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
name: 'update',
|
|
1104
|
-
description: 'Update a vault object (reads value from stdin when --value is omitted or -)',
|
|
1105
|
-
positionals: [{ name: 'id', type: 'string', description: 'Object ID', required: true }],
|
|
1106
|
-
options: [
|
|
1107
|
-
{
|
|
1108
|
-
name: 'value',
|
|
1109
|
-
type: 'string',
|
|
1110
|
-
description: 'New value (omit or use - to read from stdin)',
|
|
1111
|
-
required: false,
|
|
1112
|
-
hidden: false,
|
|
1113
|
-
},
|
|
1114
|
-
{ name: 'version-check', type: 'string', description: 'Version check ID', required: false, hidden: false },
|
|
1115
|
-
],
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
name: 'delete',
|
|
1119
|
-
description: 'Delete a vault object',
|
|
1120
|
-
positionals: [{ name: 'id', type: 'string', description: 'Object ID', required: true }],
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
name: 'describe',
|
|
1124
|
-
description: 'Describe a vault object',
|
|
1125
|
-
positionals: [{ name: 'id', type: 'string', description: 'Object ID', required: true }],
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
name: 'list-versions',
|
|
1129
|
-
description: 'List vault object versions',
|
|
1130
|
-
positionals: [{ name: 'id', type: 'string', description: 'Object ID', required: true }],
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
name: 'run',
|
|
1134
|
-
description: 'Run a command with Vault secrets injected as environment variables',
|
|
1135
|
-
options: [
|
|
1136
|
-
{
|
|
1137
|
-
name: 'secret',
|
|
1138
|
-
type: 'array',
|
|
1139
|
-
description: 'Map a vault object to an env var: ENV_VAR=vault-name (repeatable)',
|
|
1140
|
-
required: true,
|
|
1141
|
-
hidden: false,
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
name: 'env',
|
|
1145
|
-
type: 'string',
|
|
1146
|
-
description: 'Environment name to read API key from (defaults to active)',
|
|
1147
|
-
required: false,
|
|
1148
|
-
hidden: false,
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
name: 'dry-run',
|
|
1152
|
-
type: 'boolean',
|
|
1153
|
-
description: 'Print which secrets would be injected, no fetch',
|
|
1154
|
-
required: false,
|
|
1155
|
-
default: false,
|
|
1156
|
-
hidden: false,
|
|
1157
|
-
},
|
|
1158
|
-
],
|
|
1159
|
-
},
|
|
1160
|
-
],
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
name: 'api-key',
|
|
1164
|
-
description: 'Manage API keys',
|
|
1165
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1166
|
-
commands: [
|
|
1167
|
-
{
|
|
1168
|
-
name: 'list',
|
|
1169
|
-
description: 'List API keys',
|
|
1170
|
-
options: [
|
|
1171
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
1172
|
-
...paginationOpts,
|
|
1173
|
-
],
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
name: 'create',
|
|
1177
|
-
description: 'Create an API key',
|
|
1178
|
-
options: [
|
|
1179
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
1180
|
-
{ name: 'name', type: 'string', description: 'Key name', required: true, hidden: false },
|
|
1181
|
-
{
|
|
1182
|
-
name: 'permissions',
|
|
1183
|
-
type: 'string',
|
|
1184
|
-
description: 'Comma-separated permissions',
|
|
1185
|
-
required: false,
|
|
1186
|
-
hidden: false,
|
|
1187
|
-
},
|
|
1188
|
-
],
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
name: 'validate',
|
|
1192
|
-
description: 'Validate an API key',
|
|
1193
|
-
positionals: [{ name: 'value', type: 'string', description: 'API key value', required: true }],
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
name: 'delete',
|
|
1197
|
-
description: 'Delete an API key',
|
|
1198
|
-
positionals: [{ name: 'id', type: 'string', description: 'API key ID', required: true }],
|
|
1199
|
-
},
|
|
1200
|
-
],
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
name: 'org-domain',
|
|
1204
|
-
description: 'Manage organization domains',
|
|
1205
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1206
|
-
commands: [
|
|
1207
|
-
{
|
|
1208
|
-
name: 'get',
|
|
1209
|
-
description: 'Get a domain',
|
|
1210
|
-
positionals: [{ name: 'id', type: 'string', description: 'Domain ID', required: true }],
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
name: 'create',
|
|
1214
|
-
description: 'Create a domain',
|
|
1215
|
-
positionals: [{ name: 'domain', type: 'string', description: 'Domain name', required: true }],
|
|
1216
|
-
options: [{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false }],
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
name: 'verify',
|
|
1220
|
-
description: 'Verify a domain',
|
|
1221
|
-
positionals: [{ name: 'id', type: 'string', description: 'Domain ID', required: true }],
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
name: 'delete',
|
|
1225
|
-
description: 'Delete a domain',
|
|
1226
|
-
positionals: [{ name: 'id', type: 'string', description: 'Domain ID', required: true }],
|
|
1227
|
-
},
|
|
1228
|
-
],
|
|
1229
|
-
},
|
|
1230
|
-
// --- Emulator (hidden: unreleased beta feature) ---
|
|
1231
|
-
// --- Workflow Commands ---
|
|
1232
|
-
{
|
|
1233
|
-
name: 'seed',
|
|
1234
|
-
description: 'Seed WorkOS environment from a YAML config file',
|
|
1235
|
-
options: [
|
|
1236
|
-
insecureStorageOpt,
|
|
1237
|
-
apiKeyOpt,
|
|
1238
|
-
{ name: 'file', type: 'string', description: 'Path to seed YAML file', required: false, hidden: false },
|
|
1239
|
-
{
|
|
1240
|
-
name: 'clean',
|
|
1241
|
-
type: 'boolean',
|
|
1242
|
-
description: 'Tear down seeded resources',
|
|
1243
|
-
required: false,
|
|
1244
|
-
default: false,
|
|
1245
|
-
hidden: false,
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
name: 'init',
|
|
1249
|
-
type: 'boolean',
|
|
1250
|
-
description: 'Create an example workos-seed.yml file',
|
|
1251
|
-
required: false,
|
|
1252
|
-
default: false,
|
|
1253
|
-
hidden: false,
|
|
1254
|
-
},
|
|
1255
|
-
],
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
name: 'setup',
|
|
1259
|
-
description: 'Set up your coding agent (install WorkOS skills + MCP server)',
|
|
1260
|
-
options: [
|
|
1261
|
-
insecureStorageOpt,
|
|
1262
|
-
{ name: 'agents', type: 'string', description: 'Comma-separated agent keys', required: false, hidden: false },
|
|
1263
|
-
{ name: 'skills-only', type: 'boolean', description: 'Install skills only', required: false, hidden: false },
|
|
1264
|
-
{ name: 'mcp-only', type: 'boolean', description: 'Install the MCP server only', required: false, hidden: false },
|
|
1265
|
-
{ name: 'yes', type: 'boolean', description: 'Install without prompting', required: false, hidden: false },
|
|
1266
|
-
{
|
|
1267
|
-
name: 'reset',
|
|
1268
|
-
type: 'boolean',
|
|
1269
|
-
description: 'Re-enable automatic setup offers',
|
|
1270
|
-
required: false,
|
|
1271
|
-
hidden: false,
|
|
1272
|
-
},
|
|
1273
|
-
],
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
name: 'setup-org',
|
|
1277
|
-
description: 'One-shot organization onboarding',
|
|
1278
|
-
positionals: [{ name: 'name', type: 'string', description: 'Organization name', required: true }],
|
|
1279
|
-
options: [
|
|
1280
|
-
insecureStorageOpt,
|
|
1281
|
-
apiKeyOpt,
|
|
1282
|
-
{ name: 'domain', type: 'string', description: 'Domain to add', required: false, hidden: false },
|
|
1283
|
-
{ name: 'roles', type: 'string', description: 'Comma-separated role slugs', required: false, hidden: false },
|
|
1284
|
-
],
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
name: 'onboard-user',
|
|
1288
|
-
description: 'Onboard a user (send invitation, assign role)',
|
|
1289
|
-
positionals: [{ name: 'email', type: 'string', description: 'User email', required: true }],
|
|
1290
|
-
options: [
|
|
1291
|
-
insecureStorageOpt,
|
|
1292
|
-
apiKeyOpt,
|
|
1293
|
-
{ name: 'org', type: 'string', description: 'Organization ID', required: true, hidden: false },
|
|
1294
|
-
{ name: 'role', type: 'string', description: 'Role slug', required: false, hidden: false },
|
|
1295
|
-
{
|
|
1296
|
-
name: 'wait',
|
|
1297
|
-
type: 'boolean',
|
|
1298
|
-
description: 'Wait for invitation acceptance',
|
|
1299
|
-
required: false,
|
|
1300
|
-
default: false,
|
|
1301
|
-
hidden: false,
|
|
1302
|
-
},
|
|
1303
|
-
],
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
name: 'debug-sso',
|
|
1307
|
-
description: 'Diagnose SSO connection issues',
|
|
1308
|
-
positionals: [{ name: 'connectionId', type: 'string', description: 'Connection ID', required: true }],
|
|
1309
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
name: 'debug-sync',
|
|
1313
|
-
description: 'Diagnose directory sync issues',
|
|
1314
|
-
positionals: [{ name: 'directoryId', type: 'string', description: 'Directory ID', required: true }],
|
|
1315
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
name: 'install',
|
|
1319
|
-
description: 'Install WorkOS AuthKit into your project (interactive framework detection and setup)',
|
|
1320
|
-
options: [
|
|
1321
|
-
{
|
|
1322
|
-
name: 'direct',
|
|
1323
|
-
type: 'boolean',
|
|
1324
|
-
description: 'Use your own Anthropic API key (bypass llm-gateway)',
|
|
1325
|
-
required: false,
|
|
1326
|
-
default: false,
|
|
1327
|
-
alias: 'D',
|
|
1328
|
-
hidden: false,
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
name: 'debug',
|
|
1332
|
-
type: 'boolean',
|
|
1333
|
-
description: 'Enable verbose logging',
|
|
1334
|
-
required: false,
|
|
1335
|
-
default: false,
|
|
1336
|
-
hidden: false,
|
|
1337
|
-
},
|
|
1338
|
-
insecureStorageOpt,
|
|
1339
|
-
{
|
|
1340
|
-
name: 'homepage-url',
|
|
1341
|
-
type: 'string',
|
|
1342
|
-
description: 'App homepage URL for WorkOS (defaults to http://localhost:{port})',
|
|
1343
|
-
required: false,
|
|
1344
|
-
hidden: false,
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
name: 'redirect-uri',
|
|
1348
|
-
type: 'string',
|
|
1349
|
-
description: 'Redirect URI for WorkOS callback (defaults to framework convention)',
|
|
1350
|
-
required: false,
|
|
1351
|
-
hidden: false,
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
name: 'validate',
|
|
1355
|
-
type: 'boolean',
|
|
1356
|
-
description: 'Run post-installation validation (use --no-validate to skip)',
|
|
1357
|
-
required: false,
|
|
1358
|
-
default: true,
|
|
1359
|
-
hidden: false,
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
name: 'install-dir',
|
|
1363
|
-
type: 'string',
|
|
1364
|
-
description: 'Directory to install WorkOS AuthKit in (defaults to cwd)',
|
|
1365
|
-
required: false,
|
|
1366
|
-
hidden: false,
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
name: 'integration',
|
|
1370
|
-
type: 'string',
|
|
1371
|
-
description: 'Framework integration to set up (auto-detected if omitted)',
|
|
1372
|
-
required: false,
|
|
1373
|
-
hidden: false,
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
name: 'force-install',
|
|
1377
|
-
type: 'boolean',
|
|
1378
|
-
description: 'Force install packages even if peer dependency checks fail',
|
|
1379
|
-
required: false,
|
|
1380
|
-
default: false,
|
|
1381
|
-
hidden: false,
|
|
1382
|
-
},
|
|
1383
|
-
{
|
|
1384
|
-
name: 'dashboard',
|
|
1385
|
-
type: 'boolean',
|
|
1386
|
-
description: 'Run with visual dashboard mode',
|
|
1387
|
-
required: false,
|
|
1388
|
-
default: false,
|
|
1389
|
-
alias: 'd',
|
|
1390
|
-
hidden: false,
|
|
1391
|
-
},
|
|
1392
|
-
{
|
|
1393
|
-
name: 'branch',
|
|
1394
|
-
type: 'boolean',
|
|
1395
|
-
description: 'Create a new branch for changes (use --no-branch to skip)',
|
|
1396
|
-
required: false,
|
|
1397
|
-
default: true,
|
|
1398
|
-
hidden: false,
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
name: 'commit',
|
|
1402
|
-
type: 'boolean',
|
|
1403
|
-
description: 'Auto-commit after installation (use --no-commit to skip)',
|
|
1404
|
-
required: false,
|
|
1405
|
-
default: true,
|
|
1406
|
-
hidden: false,
|
|
1407
|
-
},
|
|
1408
|
-
{
|
|
1409
|
-
name: 'create-pr',
|
|
1410
|
-
type: 'boolean',
|
|
1411
|
-
description: 'Auto-create pull request after installation',
|
|
1412
|
-
required: false,
|
|
1413
|
-
default: false,
|
|
1414
|
-
hidden: false,
|
|
1415
|
-
},
|
|
1416
|
-
{
|
|
1417
|
-
name: 'git-check',
|
|
1418
|
-
type: 'boolean',
|
|
1419
|
-
description: 'Check for dirty working tree (use --no-git-check to skip)',
|
|
1420
|
-
required: false,
|
|
1421
|
-
default: true,
|
|
1422
|
-
hidden: false,
|
|
1423
|
-
},
|
|
1424
|
-
{
|
|
1425
|
-
name: 'router',
|
|
1426
|
-
type: 'string',
|
|
1427
|
-
description: 'Next.js router to target when detection is ambiguous (app or pages)',
|
|
1428
|
-
required: false,
|
|
1429
|
-
hidden: false,
|
|
1430
|
-
},
|
|
1431
|
-
],
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
name: 'migrations',
|
|
1435
|
-
description: MIGRATIONS_DESCRIPTION,
|
|
1436
|
-
options: [insecureStorageOpt, apiKeyOpt],
|
|
1437
|
-
commands: [
|
|
1438
|
-
{
|
|
1439
|
-
name: 'export',
|
|
1440
|
-
description: 'Export identity data from a source provider (or any provider via CSV, e.g. Supabase) into a WorkOS migration package',
|
|
1441
|
-
},
|
|
1442
|
-
{ name: 'export-template', description: 'Export a blank CSV template with headers and example rows' },
|
|
1443
|
-
{ name: 'import', description: 'Import users from CSV into WorkOS' },
|
|
1444
|
-
{ name: 'import-package', description: 'Import a migration package directory' },
|
|
1445
|
-
{
|
|
1446
|
-
name: 'generate-package-template',
|
|
1447
|
-
description: 'Generate an empty migration package skeleton for manual or scripted population',
|
|
1448
|
-
},
|
|
1449
|
-
{ name: 'validate', description: 'Validate a WorkOS migration CSV file' },
|
|
1450
|
-
{ name: 'validate-package', description: 'Validate a migration package directory against the schema contract' },
|
|
1451
|
-
{ name: 'export-auth0', description: 'Export users from Auth0' },
|
|
1452
|
-
{ name: 'export-cognito', description: 'Export users from AWS Cognito' },
|
|
1453
|
-
{ name: 'merge-passwords', description: 'Merge Auth0 password exports into CSV' },
|
|
1454
|
-
{ name: 'transform-clerk', description: 'Transform Clerk CSV to WorkOS format' },
|
|
1455
|
-
{ name: 'transform-firebase', description: 'Transform Firebase JSON to WorkOS format' },
|
|
1456
|
-
{ name: 'analyze', description: 'Analyze import errors and generate retry plan' },
|
|
1457
|
-
{ name: 'enroll-totp', description: 'Enroll TOTP MFA factors' },
|
|
1458
|
-
{ name: 'process-roles', description: 'Create roles and assign permissions in WorkOS' },
|
|
1459
|
-
{ name: 'wizard', description: 'Guided interactive migration wizard' },
|
|
1460
|
-
],
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
name: 'emulate',
|
|
1464
|
-
description: 'Start a local WorkOS API emulator',
|
|
1465
|
-
options: [
|
|
1466
|
-
{
|
|
1467
|
-
name: 'port',
|
|
1468
|
-
type: 'number',
|
|
1469
|
-
description: 'Port to listen on',
|
|
1470
|
-
required: false,
|
|
1471
|
-
default: 4100,
|
|
1472
|
-
alias: 'p',
|
|
1473
|
-
hidden: false,
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
name: 'seed',
|
|
1477
|
-
type: 'string',
|
|
1478
|
-
description: 'Path to seed config file (YAML or JSON)',
|
|
1479
|
-
required: false,
|
|
1480
|
-
alias: 's',
|
|
1481
|
-
hidden: false,
|
|
1482
|
-
},
|
|
1483
|
-
{
|
|
1484
|
-
name: 'interactive',
|
|
1485
|
-
type: 'boolean',
|
|
1486
|
-
description: 'Show login pages for SSO/AuthKit',
|
|
1487
|
-
required: false,
|
|
1488
|
-
default: false,
|
|
1489
|
-
alias: 'i',
|
|
1490
|
-
hidden: false,
|
|
1491
|
-
},
|
|
1492
|
-
],
|
|
1493
|
-
examples: [
|
|
1494
|
-
'workos emulate',
|
|
1495
|
-
'workos emulate --port 9100 --json',
|
|
1496
|
-
'workos emulate --seed workos-emulate.config.yaml',
|
|
1497
|
-
],
|
|
1498
|
-
},
|
|
1499
|
-
];
|
|
1500
|
-
const globalOptions = [
|
|
1501
|
-
{
|
|
1502
|
-
name: 'json',
|
|
1503
|
-
type: 'boolean',
|
|
1504
|
-
description: 'Output results as JSON (auto-enabled in non-TTY environments)',
|
|
1505
|
-
required: false,
|
|
1506
|
-
default: false,
|
|
1507
|
-
hidden: false,
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
name: 'mode',
|
|
1511
|
-
type: 'string',
|
|
1512
|
-
description: 'Interaction mode: human, coding agent, or CI automation',
|
|
1513
|
-
required: false,
|
|
1514
|
-
choices: ['human', 'agent', 'ci'],
|
|
1515
|
-
hidden: false,
|
|
1516
|
-
},
|
|
1517
|
-
{ name: 'help', type: 'boolean', description: 'Show help', required: false, alias: 'h', hidden: false },
|
|
1518
|
-
{ name: 'version', type: 'boolean', description: 'Show version number', required: false, alias: 'v', hidden: false },
|
|
1519
|
-
];
|
|
1520
|
-
// ---------------------------------------------------------------------------
|
|
1521
|
-
// Public API
|
|
1522
|
-
// ---------------------------------------------------------------------------
|
|
1523
|
-
const helpJsonCommandNames = new Set([
|
|
1524
|
-
...commands.map((command) => command.name.split(' ')[0]),
|
|
1525
|
-
...Object.keys(COMMAND_ALIASES),
|
|
1526
|
-
]);
|
|
1527
|
-
/**
|
|
1528
|
-
* Extract the requested command from raw argv before yargs parses --help.
|
|
1529
|
-
*
|
|
1530
|
-
* This intentionally matches only known command names so option values from
|
|
1531
|
-
* global flags like `--mode agent` are not mistaken for commands.
|
|
1532
|
-
*/
|
|
1533
|
-
export function extractHelpJsonCommand(argv) {
|
|
1534
|
-
for (let i = 0; i < argv.length; i++) {
|
|
1535
|
-
const arg = argv[i];
|
|
1536
|
-
if (arg === '--mode') {
|
|
1537
|
-
i += 1;
|
|
1538
|
-
continue;
|
|
1539
|
-
}
|
|
1540
|
-
if (arg.startsWith('--mode=')) {
|
|
1541
|
-
continue;
|
|
1542
|
-
}
|
|
1543
|
-
if (!arg.startsWith('-') && helpJsonCommandNames.has(arg)) {
|
|
1544
|
-
return COMMAND_ALIASES[arg] ?? arg;
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
return undefined;
|
|
1548
|
-
}
|
|
1549
|
-
/**
|
|
1550
|
-
* Build a machine-readable command tree for --help --json output.
|
|
1551
|
-
*
|
|
1552
|
-
* @param subcommand - Optional command name to return a subtree for (e.g. "env").
|
|
1553
|
-
* Returns full tree if omitted or if command not found.
|
|
1554
|
-
*/
|
|
1555
|
-
/**
|
|
1556
|
-
* Top-level command names (first token of each registered command). Used by
|
|
1557
|
-
* telemetry to recognise real commands without trusting arbitrary argv tokens
|
|
1558
|
-
* (so option values / secrets are never recorded as a command name).
|
|
1559
|
-
*/
|
|
1560
|
-
export function getTopLevelCommandNames() {
|
|
1561
|
-
return commands.map((c) => c.name.split(' ')[0]);
|
|
1562
|
-
}
|
|
1563
|
-
export function buildCommandTree(subcommand) {
|
|
1564
|
-
if (subcommand) {
|
|
1565
|
-
const match = commands.find((c) => c.name === subcommand);
|
|
1566
|
-
if (match)
|
|
1567
|
-
return match;
|
|
1568
|
-
}
|
|
1569
|
-
return {
|
|
1570
|
-
name: 'workos',
|
|
1571
|
-
version: getVersion(),
|
|
1572
|
-
description: 'WorkOS CLI for AuthKit integration and resource management',
|
|
1573
|
-
commands,
|
|
1574
|
-
options: globalOptions,
|
|
1575
|
-
};
|
|
1576
|
-
}
|
|
1577
|
-
//# sourceMappingURL=help-json.js.map
|