@cartesianui/cli
v1.0.1
Published
A custom command-line tool for scaffolding and managing **Cartesian UI** projects.
Readme
CartesianUI CLI
A custom command-line tool for scaffolding and managing Cartesian UI projects.
Requirements
| Tool | Version Tested | Notes | |------------|---------------|--------------------------------------------| | Node.js | 18.12.0 | Recommended (LTS). Other versions may work | | npm | 9.x+ | Ships with Node.js | | TypeScript | 5.0.0+ | Required for development only |
Dependencies
| Dependency | Version | Purpose | |---------------------|-------------|-----------------------------------------------------| | fs-extra | ^11.0.0 | File system utilities with promises | | @types/fs-extra | ^11.0.4 | Type definitions for fs-extra (dev only) | | @types/node | ^18.17.0 | Node.js type definitions (dev only) | | typescript | ^5.0.0 | TypeScript compiler (dev only) | | undici-types | ^7.13.0 | Required by some newer Node.js type definitions |
Quickstart
⚙️ Install (Development)
Clone the repository:
git clone https://github.com/cartesianui/cli.git
cd cli
npm install🧪 Test the CLI Locally
npm run build
npm linkNow you can use
cuicommand for local testing
🚀 Build (Production)
Compile TypeScript to JavaScript:
npm run build📦 Publish
npm publish --access publicInstall from npm (published version)
npm install -g @cartesianui/cli📝 Notes
Template Files
- The CLI copies template files from the
template/directory in the CLI package into the destination folder. - The
stubfolder is skipped by default.
Confirmation Prompt
- When running commands that will overwrite files, the CLI will ask for confirmation.
- Use the
--yesflag to skip the confirmation prompt.
License
Disclaimer:
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement.
Use it at your own risk.
We are not responsible for any damages, data loss, or other consequences resulting from its use.
