A GLPI plugin, with one command.
npx create-glpi-plugin: it asks for a name, GLPI versions and parts, writes thirty-four files and makes the first commit.
Type a key, pick the versions, generate: watch the files the CLI writes.
Main screennpx create-glpi-plugin: it asks for a name, GLPI versions and parts, writes thirty-four files and makes the first commit.
The problem
Every new plugin starts with the same ten files written by hand: setup, hook, rights, menu, settings page, cron, tests. The small differences between GLPI 11 and 12 (typed class properties, for instance) blow up on first load and hours disappear.
What I built
The CLI generates a version-aware scaffold from your answers: rights, pages, settings, cron, a test harness and a release workflow come ready. It also adds a rules file with GLPI conventions for coding assistants, so AI-assisted development avoids GLPI-specific traps. There is no telemetry at all.
Technical notes
- Templates are generated conditionally from version flags
- The generated plugin starts life as a git repository
- Release: pushing a tag makes GitHub Actions build the package
Highlights
- Interactive wizard: key, display name, GLPI versions, parts, AI tools
- One codebase for GLPI 11 and 12; it knows the typed-property traps of 12
- Ready-made test harness and load check (loadcheck)
- Coding-assistant rules: CLAUDE.md, AGENTS.md and a GLPI rule set
- 24 unit tests, 83 end-to-end scenarios; verified on real 11 and 12 installations