nuxt-charts-cli
v1.0.1
Published
Awesome CLI tool for downloading Nuxt Charts components
Maintainers
Readme
Nuxt Charts CLI
A secure command-line interface for downloading and installing Nuxt Charts components.
Installation
npm install -g nuxt-charts-cliUsage
Authentication (API Token)
Some commands require an API token for authentication. You can set your token once and it will be used automatically for future commands:
# Set your API token
nuxt-charts config set-token <your-token-here>
# You can also pass the token directly to commands if needed
nuxt-charts add Calendar --token <your-token-here>If no token is provided via CLI option, the CLI will use the token saved in your config file.
Add a component
# Add to default location (./app/components/{ComponentName})
nuxt-charts add Calendar
# Add to custom location
nuxt-charts add progress-circle ./components/ui/ProgressCircle.vue
# Add with token (if not set globally)
nuxt-charts add Calendar --token <your-token-here>List available components
nuxt-charts listGet help
nuxt-charts --helpAvailable Components
calendar- Calendar componentprogress-circle- Progress circle component
Error Handling
The CLI provides clear error messages and:
- Graceful error handling without system crashes
- Automatic cleanup of temporary files
- Detailed logging for debugging
Development
# Install dependencies
npm install
# Build the CLI
npm run build
# Test locally
npm linkLicense
MIT
