Ship your first Nitro site.
From zero to deployed in six steps. No template languages, no build configs - just Python.
Install Nitro CLI
One pip install pulls in nitro-ui and nitro-datastore too, so you can start writing pages right away.
pip install nitro-cliCreate a new site
Scaffolds a starter project with an example page, a nitro.config.py, and a sensible directory layout.
nitro new my-site
cd my-siteStart the dev server
Live reload on every save. Visit http://localhost:3000 to see your site update as you edit.
nitro devEdit a page
Pages live in src/pages/ and export a render() function. Use real Python - variables, loops, imports.
from nitro_ui import HTML, Head, Body, Title, H1, Paragraph
from nitro import Page
def render():
return Page(
title="Home",
content=HTML(
Head(Title("Home")),
Body(
H1("Welcome to my site"),
Paragraph("Built with Nitro."),
),
),
)Build for production
Produces a build/ directory of minified HTML, optimized CSS, responsive images, and a sitemap.
nitro buildDeploy anywhere
The build/ directory is just static files. Upload to any host - Netlify, Vercel, Cloudflare Pages, S3, or your own server.
nitro deploy # Netlify, Vercel, or Cloudflare PagesYou're ready.
Explore the tool docs to go deeper, or jump straight into building.