Commands
The Trix CLI provides a straightforward set of commands to manage your project generation.
create-trix
The main command to start the interactive project generator.
create-trix [project-name]
Arguments
project-name(Optional): The name of the directory to be created. If omitted, you will be prompted to enter it.
Flags
-V, --version: Output the version number.-h, --help: Display help for the command.
Interactive Prompts
When running create-trix, you will be guided through several choice points:
- Project Type:
Frontend: SPAs and web applications.Backend: APIs and server-side logic.Mobile: Mobile applications(in the works)
- Framework:
- Frontend: React, Vue 3, Svelte 4.
- Backend: Express, Fastify, NestJS.
- Mobile: React Native, Flutter
- TypeScript: Always recommended! (Select 'Yes' or 'No').
- Package Manager: Choose your preferred tool (
npm,yarn,pnpm, orbun). - Add-ons: Select from various modules like Auth, Databases, and Styling.