Skip to content

feat: add Flows management commands - #1628

Open
developerkunal wants to merge 1 commit into
feat/forms-managementfrom
feat/flows-management
Open

feat: add Flows management commands#1628
developerkunal wants to merge 1 commit into
feat/forms-managementfrom
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
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.

1 participant