CLI
CLI
The @thaparoyal/calendar-cli package helps you initialize a project config and add calendar components (shadcn-style).
Installation
npm install -g @thaparoyal/calendar-cliOr use directly with npx:
npx trc --helpUsage
Initialize your project
npx trc initThis creates calendar.config.json and can install framework packages for you.
Add components
npx trc add calendarnpx trc add date-pickernpx trc add calendar date-pickerList available components
npx trc listRun in another directory
npx trc init --cwd .npx trc add calendar --cwd .Skip confirmation prompts
npx trc add calendar date-picker --yesWhat It Generates
calendar.config.json- UI component files in your configured components directory
- supporting hooks/utils/styles based on selected components
Notes
- The CLI focuses on project setup and component installation.
- For date conversion utilities, import functions directly from
@thaparoyal/calendar-core.