Installation
Install the Jaspr CLI globally using Dart’s pub tool:The CLI requires Dart SDK 3.8.0 or later.
Available Commands
The Jaspr CLI provides the following core commands:create
Create a new Jaspr project with customizable templates and presets
serve
Run a development server with hot reload for rapid iteration
build
Build your project for production deployment
doctor
Check your environment and diagnose common issues
Quick Start
Create and run a new Jaspr project:Create a new project
- Rendering mode (static, server, or client)
- Routing strategy (none, multi-page, or single-page)
- Flutter support (none, embedded, or plugins-only)
- Backend framework (for server mode)
Start the development server
http://localhost:8080 with hot reload enabled.Global Flags
These flags are available for all commands:Enable verbose logging to see detailed output and debugging information.
Display help information for any command.
Command Categories
Project Commands
Commands for managing your Jaspr project lifecycle:- create - Initialize a new project
- serve - Run development server
- build - Build for production
Utility Commands
- doctor - Diagnose environment issues
- update - Update Jaspr dependencies
- clean - Clean build artifacts
- migrate - Migrate projects between versions
Terminal Output
The CLI uses color-coded tags to distinguish between different processes:Configuration
The CLI reads configuration from yourpubspec.yaml:
pubspec.yaml
Environment Requirements
Dart SDK
Dart SDK
- Minimum version: 3.8.0
- Latest stable version recommended
- Install from dart.dev
Flutter SDK (Optional)
Flutter SDK (Optional)
- Required only for Flutter embedding or plugin support
- Version 3.22.0 or later recommended
- Install from flutter.dev
Browser (Development)
Browser (Development)
- Chrome recommended for debugging with DevTools
- Use
--launch-in-chromeflag to auto-launch
Troubleshooting
If you encounter issues, run the doctor command:Command not found
Command not found
Ensure
~/.pub-cache/bin is in your PATH:Port already in use
Port already in use
Specify a different port:
Build failures
Build failures
Clean build artifacts and try again:
Next Steps
Create Command
Learn about project creation options and templates
Serve Command
Explore development server features and hot reload
Build Command
Understand production build options and optimization
Quick Start
Follow the complete getting started guide