0.3.0 • Published 7 months ago
@rechunk/cli v0.3.0
@rechunk/cli
Command-line interface for managing ReChunk projects, chunks, and deployments.
Features
- 🚀 Project initialization
- 📦 Chunk management
- 🔄 Development server
- 🔐 Secure publishing
- 📱 React Native integration
- 🛠️ Configuration tools
Installation
npm install -g @rechunk/cli
# or with yarn
yarn global add @rechunk/cli
# or with pnpm
pnpm add -g @rechunk/cliCommands
Initialize Project
rechunk init -h https://rechunk.example.com -u username -p passwordStart Development Server
rechunk dev-serverPublish Chunks
rechunk publishManage Chunks
rechunk manageConfiguration
.rechunkrc.json
{
"host": "https://rechunk.example.com",
"project": "project-id",
"readKey": "read-key",
"writeKey": "write-key",
"publicKey": "public-key",
"privateKey": "private-key",
"external": ["external-dependency"]
}Environment Variables
# Development server
RECHUNK_ENVIRONMENT=dev
# Production mode
RECHUNK_ENVIRONMENT=prod
# Offline mode
RECHUNK_ENVIRONMENT=offlineDevelopment Server
The development server runs on port 49904 by default and provides:
- Hot reloading
- Chunk signing
- Development-time optimizations
Publishing
Interactive chunk publishing process:
- Scans for
use rechunkdirectives - Prompts for chunk selection
- Bundles selected chunks
- Signs and uploads to server
Management Interface
Opens a browser interface for:
- Viewing published chunks
- Managing versions
- Monitoring usage
- Configuration updates
Contributing
Contributions are welcome! Please read our contributing guidelines first.
License
MIT