Skip to content

feat(plugins): add plugin dev create and starter templates - #1746

Open
developerkunal wants to merge 3 commits into
DXCDT-2618/dev-link-validatefrom
DXCDT-2619/templates-dev-create
Open

developerkunal wants to merge 3 commits into
DXCDT-2618/dev-link-validatefrom
DXCDT-2619/templates-dev-create

Conversation

@developerkunal

Copy link
Copy Markdown
Contributor

🔧 Changes

This adds auth0 plugin dev create, which writes a starter plugin project in Go (--lang go) or TypeScript (--lang ts). The plugin ID, version, description, first command, scopes, author, license and target directory come from flags or prompts. The starter projects are embedded in the CLI, so creating a project needs no network request.

  • The Go starter uses go-auth0, and the TypeScript starter uses the auth0 Node package. Both call the Management API through the local plugin proxy, using the domain, token and CA certificate that the CLI passes to the plugin.
  • Each starter includes tests, a lint or typecheck step, a CI workflow and a release workflow. A release is opened from the author's machine with make release or bun run release, and merging the release pull request publishes it.
  • A test keeps the embedded templates under a fixed size budget.
  • The scaffold package builds, vets and tests each starter with its own toolchain.

📚 References

🔬 Testing

Unit tests cover the scaffold, the flags and the file writes. A build test creates each starter and builds it with its own toolchain. The build test skips a case when the toolchain or the package registry cannot be reached.

📝 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). The plugin pages land in the docs PR above this one.

@developerkunal
developerkunal requested a review from a team as a code owner November 2, 2026 10:33
@developerkunal
developerkunal force-pushed the DXCDT-2619/templates-dev-create branch from 954e0de to 861bdd5 Compare November 2, 2026 11:12
@developerkunal
developerkunal force-pushed the DXCDT-2619/templates-dev-create branch from 861bdd5 to 3fac436 Compare November 2, 2026 14:31
- Add plugin dev create, which scaffolds a Go or TypeScript plugin project
- Embed the starter templates with tests, CI and a local release command
- Generate plugin.json from the typed manifest and validate it before writing
@developerkunal
developerkunal force-pushed the DXCDT-2619/templates-dev-create branch from 3fac436 to 7917533 Compare November 2, 2026 19:43

This branch has not been deployed

No deployments
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