CLI Overview
The Scully CLI is the primary interface for building, serving, and managing your static Angular applications. It provides a comprehensive set of commands and options to control every aspect of the static site generation process.Installation
Install Scully globally or as a dev dependency:Basic Usage
The general syntax for Scully CLI commands is:Available Commands
Build Command (Default)
Builds and generates static files for your Angular application:serve
Starts the Scully development server:server, s
version
Displays the current Scully version:killServer
Kills any running Scully background server:ks
prepServe
Forces server setup from the project:Command Line Options
Scully provides extensive command-line options to customize behavior. All options can be:- Passed as command-line flags
- Set via environment variables using the
SCULLY_prefix - Configured in the
scully.config.tsfile
Common Usage Patterns
Development Workflow
Build and serve with watch mode:Production Build
Generate static files for production:Selective Route Generation
Generate specific routes using filters:Debug Mode
Run with visible browser for debugging:Environment Variables
From version 2.0.3 onwards, all CLI parameters can be provided via an environment variable calledSCULLY (all caps):
Exit Codes
Scully uses the following exit codes:0- Success15- Configuration error or fatal error during processing
Getting Help
Display help information:Next Steps
- Learn about the build command in detail
- Explore serve command options
- Review all available command-line options

