-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commands
Alejandro edited this page Mar 1, 2025
·
2 revisions
Norgolith provides a powerful CLI for managing your static sites and themes. This reference covers all commands and their options.
These options are available for all commands:
-d, --dir <PROJECT_DIR> Operate on project in specified directory
-h, --help Show command help
-v, --version Show Norgolith versionInitialize a new Norgolith site.
lith init [OPTIONS] [NAME]--prompt Prompt for site metadata (title, author, etc.)
--no-prompt Skip metadata prompts (uses sane defaults)# Interactive setup (default)
lith init my-blog --prompt
# Quick setup with sane defaults, e.g. `en-US` as the language code
lith init my-site --no-promptStart development server.
lith serve [OPTIONS]-p, --port <PORT> Set server port (default: 3030)
-e, --host Expose server to LAN
-o, --open Open browser automatically
--drafts Include draft content (default)
--no-drafts Exclude draft content# Start server on port 8080 and open browser
lith serve --port 8080 --open
# Serve excluding drafts
lith serve --no-draftsCreate new content or assets.
lith new [OPTIONS] [NAME]-k, --kind <KIND> Asset type (norg|css|js) [default: norg]
-o, --open Open file in system editor# Create new blog post
lith new -k norg posts/2023/my-post.norg
# Create CSS file and open it
lith new -k css styles.css --openBuild production-ready site.
lith build [OPTIONS]-m, --minify Minify HTML/CSS/JS output (default)# Build with minification
lith build --minifyManage installed theme.
pull <REPO> Install theme from repository
update Update current theme
rollback Restore previous theme version
init Create new theme structure
info Show theme informationInstall a theme from a repository (github, codeberg or sourcehut). If no VERSION has been provided it will fallback to the latest Git tag available.
lith theme pull [OPTIONS] <REPO> [VERSION]--pin Pin to current major versionUpdate the currently installed theme.
lith theme update [OPTIONS]Restore previous theme version from backup.
lith theme rollback [OPTIONS]Initialize theme structure.
lith theme init [OPTIONS]Show theme information.
lith theme info [OPTIONS]# Install theme from GitHub
lith theme pull github:NTBBloodbath/norgolith-pico-theme
# Update theme while keeping backups
lith theme update
# Create new theme scaffold
lith theme init my-theme