Releases: nitrosh/nitro-cli
Releases · nitrosh/nitro-cli
v1.0.17
v1.0.16
Full Changelog: v1.0.15...v1.0.16
v1.0.15
Full Changelog: v1.0.14...v1.0.15
v1.0.14
v1.0.13
v1.0.12
Full Changelog: v1.0.10...v1.0.12
v1.0.11
v1.0.10
v1.0.9
Fixed numerous issues and documentation consistency.
Full Changelog: v1.0.8...v1.0.9
v1.0.8
New Commands
- nitro init - Initialize Nitro in an existing directory with minimal scaffolding (config, directories, starter page)
- nitro routes - List all routes the site will generate, showing URL, source file, type (static/dynamic), and draft status
- nitro check - Validate site without building - checks that all pages render successfully and verifies internal links
- nitro export - Export the built site as a zip archive for easy deployment or sharing
New Features
- Draft Pages - Mark pages with draft=True to exclude them from production builds while still rendering in development Page(title="WIP", content=html, draft=True)
- Environment Variables - New env module with automatic .env file loading from nitro import env
api_key = env.API_KEY
if env.is_production():
# production-only code
- Enhanced Sitemap - Control sitemap generation via page metadata
Page(
title="Page",
content=html,
meta={
"sitemap": False, # exclude from sitemap
"lastmod": "2024-01-15", # custom last modified
"sitemap_priority": 0.9, # custom priority
"sitemap_changefreq": "daily", # change frequency
}
)
Dependencies
- Updated nitro-ui requirement to >= 1.0.6
- Added optional python-dotenv dependency for .env support (pip install nitro-cli[dotenv])
Documentation
- Updated SKILL.md with all new commands and features
- Updated README.md with new commands and features