feat: add actions modules command tree - #1606
Open
developerkunal wants to merge 2 commits into
Open
Conversation
Add the auth0 actions modules command group with list, show, create, update, and delete, plus draft publishing support. - create and update accept code, dependencies, and secrets, with guided interactive prompts and a --publish flag to snapshot a new immutable version - update skips the API call when nothing changed and reports the current module instead of issuing an empty write - delete accepts multiple ids and hides modules in use by deployed action versions, which the API refuses to delete - code is shown as a syntax-highlighted block beneath the details table - add unit tests and commander integration tests
developerkunal
marked this pull request as ready for review
August 10, 2026 11:44
Add 'auth0 actions modules actions list' to list the actions that use
an action module, along with the module version each action is on.
Backed by the /actions/modules/{id}/actions endpoint.
2 tasks
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 the
auth0 actions modulescommand group for managing action modules, the reusable code libraries that actions can import.New commands:
auth0 actions modules list— list modules, with--number,--json,--json-compact, and--csvoutput.auth0 actions modules show <id>— show a module's code, dependencies, secrets, and version details.auth0 actions modules create— create a module from a name and code, with optional dependencies, secrets,--api-version, and--publish. Runs guided interactive prompts when flags are omitted.auth0 actions modules update <id>— update code, dependencies, or secrets independently, with--publishto snapshot a new immutable version.auth0 actions modules delete <id>...— delete one or more modules.Behavior notes:
updateskips the API call when nothing changed and shows the current module instead of issuing an empty write request.ActionModuleAPIV3andActionModuleVersionAPIV3interfaces over the go-auth0 v3 SDK, with regenerated mocks.📚 References
DXCDT-2171
🔬 Testing
test/integration/action-modules-test-cases.yamlexercise list, create, create-and-publish, show, update, secret preservation, publish, invalid name, and delete. Verified locally against a live tenant via commander.📝 Checklist