CLI Reference
The CLI is provided by `@stackpress/idea`.
The CLI is provided by @stackpress/idea.
Command
idea transform
Input Selection
Default input:
idea transform
This resolves to schema.idea in the current working directory.
Explicit input:
idea transform --input ./schemas/admin.idea
Short flag:
idea transform -i ./schemas/admin.idea
Behavior
transform will:
- resolve the input file
- load the schema
- resolve
usereferences - resolve plugin modules
- execute each plugin
Notes
- The CLI uses
.ideaas the default schema extension. - Plugin execution happens through
@stackpress/idea-transformer. - If the schema has no
plugindeclarations, transform fails. - Plugin module paths can be relative files or installed packages.
Examples
npx idea transform
npx idea transform --input ./schema.idea