Run A Schema
This guide shows the normal CLI workflow.
This guide shows the normal CLI workflow.
Use The Default File Name
If your schema file is named schema.idea, run:
npx idea transform
The CLI defaults to schema.idea in the current working directory.
Use A Specific File
If your schema file has a different name or location, pass --input:
npx idea transform --input ./schemas/admin.idea
The short flag also works:
npx idea transform -i ./schemas/admin.idea
What The CLI Does
Running transform will:
- resolve the input path
- parse the schema file
- resolve any
usereferences - resolve each plugin module
- call each plugin with the loaded schema
Common Failures
Input File Does Not Exist
Make sure the path passed to --input exists.
No Plugins Defined
transform expects at least one plugin declaration in the schema.
Plugin Module Cannot Be Resolved
Make sure the plugin path is valid relative to the current working directory and that the file extension can be resolved.
The transformer will try common JavaScript and TypeScript extensions when loading plugin modules.