Command-Line Options
Complete reference for all command-line options available in Scully.From version 2.0.3 onwards, all CLI parameters can be provided via an environment variable called
SCULLY (all caps).General Options
—help
Display help information:—version
Display the current Scully version:Build Options
—watch, -w
Enable watch mode for automatic rebuilding:falseType: Boolean Monitors file changes and automatically rebuilds your static site.
—scanRoutes, —sr, —scan
Scan the application for unhandled routes:falseType: Boolean Forces Scully to re-scan your Angular application to discover new routes. Use this when you’ve added or changed routes.
—removeStaticDist, —RSD
Remove the static output folder before building:falseType: Boolean Deletes the Scully output folder (default:
./dist/static) before starting a new build.
—prod, —Production
Use production mode:falseType: Boolean Builds Scully in production mode with optimizations enabled.
Server Options
—port, -p
Specify the server port:1668Type: Number Sets the port for the Scully server.
—hostName, —host
Set the hostname:localhostType: String Configures the hostname for the Scully server.
—openNavigator, -o, —open
Open browser automatically:falseType: Boolean Automatically opens the default browser when the server starts.
—ssl
Enable SSL/HTTPS:falseType: Boolean Runs the server with a self-signed SSL certificate.
—sslCert, —ssl-cert
Path to SSL certificate:undefinedType: String Provides a custom SSL certificate file.
—sslKey, —ssl-key
Path to SSL key:undefinedType: String Provides a custom SSL private key file.
—handle404, —404
Configure 404 handling:'' (empty)Type: Choice:
index, baseOnly, 404, none, or empty
Determines how the server handles 404 errors:
index- Serve/index.htmlfor all 404sbaseOnly- Serve/index.htmlonly for base route 404s404- Serve/404.htmlif it existsnone- Return standard 404 errors''- Use default behavior
—serverTimeout, —st
Set server timeout:10000 (10 seconds)Type: Number (milliseconds) Time Scully will wait for the Angular server before timing out.
—proxyConfigFile, —proxy, —proxyConfig, —proxy-config
Load proxy configuration:undefinedType: String Path to a proxy configuration file for API proxying.
—tds
Start test data server:falseType: Boolean Starts the built-in test data server with mock API endpoints.
Route Filtering
—routeFilter, —rf, —route-filter
Filter handled routes:'' (empty)Type: String (comma-separated wildcards) Provides wildcard patterns to filter which routes to process.
—baseFilter, —bf
Filter unhandled routes:'' (empty)Type: String (comma-separated wildcards) Provides wildcard patterns to filter unhandled routes during route discovery.
—path
Generate a specific path:undefinedType: String Generates only the specified path.
Configuration
—project, —pr
Select a specific project:'' (uses default project)Type: String Specifies which Angular project to process in a monorepo.
—configFile, —cf, —configFileName
Use a custom config file:'' (uses default)Type: String Loads a specific Scully configuration file. The
--project flag takes precedence if both are specified.
—folder
Specify output folder:undefinedType: String Sets a custom output directory for static files.
—pluginFolder, —pf, —plugin-folder
Set plugin directory:./scullyType: String Specifies where to look for custom plugins and configuration.
Debugging
—showBrowser, —sb
Show Puppeteer browser:falseType: Boolean Displays the Chromium browser window during rendering for debugging.
—showGuessError, —sge
Show Guess parser errors:falseType: Boolean Dumps Guess parser errors to the console for debugging routing issues.
Logging
—noLog, —nl
Reduce console output:falseType: Boolean Logs only warnings and errors, suppressing informational messages.
—logSeverity, —ls, —log-severity
Set log severity level:warningType: Choice:
normal, warning, error, none
Controls the minimum severity of messages to log:
| Option | Behavior |
|---|---|
normal | Log everything |
warning | Log warnings and errors only |
error | Log errors only |
none | No logging, no log file created |
—stats, —statistics
Generate build statistics:falseType: Boolean Writes detailed build statistics to
scullyStats.json:
Error Handling
—pluginsError, —pe
Exit on plugin errors:trueType: Boolean Controls whether Scully exits when a plugin encounters an error. Set to
false to continue rendering despite plugin errors.
—noPrompt, —np, —no-prompt
Disable user prompts:falseType: Boolean Prevents interactive prompts, useful for CI/CD environments.
Advanced Options
—killServer, —ks, —kill-server
Kill existing server:falseType: Boolean Automatically kills other running Scully servers without prompting.
—pjFirst, —pjf, —pj-first
Prioritize package.json:falseType: Boolean Looks for
package.json before angular.json when determining the project root. Useful in mixed monorepos.
—disableProjectFolderCheck
Skip project folder validation:falseType: Boolean Disables the check that verifies Scully was launched from the project folder. Useful when using symlinked dependencies (pnpm, npm link).
Environment Variables
All CLI options can be set via environment variables using theSCULLY_ prefix:
Option Aliases Reference
Quick reference for all option aliases:| Long Form | Short Form | Aliases |
|---|---|---|
--watch | -w | |
--port | -p | |
--openNavigator | -o | --open |
--showBrowser | --sb | |
--showGuessError | --sge | |
--project | --pr | |
--configFile | --cf | --configFileName |
--baseFilter | --bf | |
--routeFilter | --rf | --route-filter |
--removeStaticDist | --RSD | |
--serverTimeout | --st | |
--pjFirst | --pjf | --pj-first |
--handle404 | --404 | |
--pluginFolder | --pf | --plugin-folder |
--pluginsError | --pe | |
--noPrompt | --np | --no-prompt |
--noLog | --nl | |
--logSeverity | --ls | --log-severity |
--stats | --statistics | |
--killServer | --ks | --kill-server |
--proxyConfigFile | --proxy | --proxyConfig, --proxy-config |
--sslCert | --ssl-cert | |
--sslKey | --ssl-key | |
--scanRoutes | --sr | --scan |
--prod | --Production |
Examples
Development Build
Production Build
Selective Build
Serve with SSL
CI/CD Build
Debug Build
Next Steps
- Return to CLI Overview
- Learn about the build command
- Explore the serve command

