wro-cms
v0.1.4
Published
Keep your WroCMS project in sync with your codebase with simple commands.
Readme
WroCMS CLI (WIP)
Keep your WroCMS project in sync with your codebase with simple commands.
Usage
npx wro-cms [command]Commands
npx wro-cms schema --path src/types/Schema.tsUpdate the TypeScript schema of the WroCMS project.
Arguments:
--path: The path to the TypeScript schema file (default: src/types/Schema.ts)
--i18n: Include the i18n fields in the schema (default: false)
--type=[typescript|json] The type of schema to generate (default: typescript)
--site-key: The site key to get the schema from (default: process.env.WROCMS_SITE_KEY)
--api-key: The API key to use (default: process.env.WROCMS_API_KEY)For the API token and site key, it uses the WROCMS_SITE_KEY and WROCMS_API_KEY environment variables.
