Skip to content

feat: add Flows management commands - #1628

Merged
ramya18101 merged 9 commits into
mainfrom
feat/flows-management
Sep 2, 2026
Merged

feat: add Flows management commands#1628
ramya18101 merged 9 commits into
mainfrom
feat/flows-management

Conversation

@developerkunal

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds auth0 flows to manage Flows, Flow Executions, and Vault Connections, mirroring the existing Forms command surface.

New commands:

  • auth0 flows list | create | show | update | delete | open
  • auth0 flows executions list | show | delete
  • auth0 flows vault connections list | create | show | update | delete
  • auth0 flows vault open

Like 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 open and flows vault open open (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 duplicate readFormBody, editFormJSON, and openFormEditURL from forms.go.

📚 References

Stacked on #1626 (Forms management); base branch is feat/forms-management.

🔬 Testing

  • make test-unit and make lint pass.
  • Added unit tests for the raw helpers, create/update commands, and builder-URL formatting.
  • Added a commander integration suite (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 docs regenerated.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

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.
@developerkunal
developerkunal requested a review from a team as a code owner August 24, 2026 16:34
@ramya18101
ramya18101 changed the base branch from feat/forms-management to main September 2, 2026 11:57
@ramya18101
ramya18101 merged commit c21d8c3 into main Sep 2, 2026
6 checks passed
@ramya18101
ramya18101 deleted the feat/flows-management branch September 2, 2026 12:35
@ramya18101 ramya18101 mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants