Installation
The Fern CLI is installed automatically when you install the Fern framework:fern command will be available globally.
Quick Start
Available Commands
bloom
Check system health and dependencies
sprout
Create a new Fern project
fire
Run or build your project
prepare
Build for production deployment
install
Install Fern packages
templates
Manage project templates
lsp
Language Server Protocol tools
web-cache
Manage web build cache
Global Options
Display help information for any command
Display the Fern CLI version
Basic Usage
Display help for the CLI:Environment Variables
The original working directory when the CLI was invoked. Used internally to maintain correct paths when changing directories.
Project Structure
Fern projects created withfern sprout follow this structure:
Configuration File
Projects usefern.yaml for configuration:
Platform Support
The Fern CLI supports multiple target platforms:- Linux - Native Linux applications using X11
- Web - WebAssembly applications using Emscripten
- macOS - Native macOS applications using Cocoa (experimental)
Development Workflow
- Create a project with
fern sprout - Check your environment with
fern bloom - Develop locally with
fern firefor rapid iteration - Test on web with
fern fire -p web - Build for production with
fern prepare <platform>
Terminal Output
The CLI provides color-coded output for better readability:- Green - Success messages
- Yellow - Warnings and informational messages
- Red - Errors
- Blue - Headers and section titles
- Cyan - Secondary information
Next Steps
Create Your First Project
Learn how to create a new Fern project
Run and Build
Compile and run your applications
System Health
Verify your development environment
Templates
Use templates for common project types