feat: add Flows management commands - #1628
Open
developerkunal wants to merge 1 commit into
Open
Conversation
Add `auth0 flows` for managing Flows, Flow Executions, and Vault Connections, mirroring the existing Forms commands. - flows list/create/show/update/delete/open - flows executions list/show/delete - flows vault connections list/create/show/update/delete - flows vault open Create/update/show go through the raw Management API to preserve provider-specific config that the typed v3 request bodies drop, while list/delete use the v3 SDK. Consolidate the raw-JSON, body-input, editor, and builder-URL helpers shared by Forms and Flows into utils_shared.go, removing the duplicated readFormBody, editFormJSON, and openFormEditURL helpers from forms.go. Includes generated docs, unit tests, and a commander integration suite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Adds
auth0 flowsto manage Flows, Flow Executions, and Vault Connections, mirroring the existing Forms command surface.New commands:
auth0 flows list | create | show | update | delete | openauth0 flows executions list | show | deleteauth0 flows vault connections list | create | show | update | deleteauth0 flows vault openLike Forms, create/update/show go through the raw Management API so provider-specific config in the union types is preserved, while list/delete use the go-auth0 v3 SDK.
flows openandflows vault openopen (or print) the builder page on forms.auth0.com. Vault connection setup secrets are write-only and are never rendered back.This also consolidates the raw-JSON transport, body-input reader, JSON editor, and builder-URL helpers that Forms and Flows share into
internal/cli/utils_shared.go, removing the duplicatereadFormBody,editFormJSON, andopenFormEditURLfromforms.go.📚 References
Stacked on #1626 (Forms management); base branch is
feat/forms-management.🔬 Testing
make test-unitandmake lintpass.test/integration/flows-test-cases.yaml, 31 cases) covering CRUD for flows, executions, and vault connections plus the open commands and agent-mode guards, with self-contained cleanup. Run against a live tenant.make docsregenerated.📝 Checklist