Get Started

Ship your first Nitro site.

From zero to deployed in six steps. No template languages, no build configs - just Python.

01

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-cli
02

Create 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-site
03

Start the dev server

Live reload on every save. Visit http://localhost:3000 to see your site update as you edit.

nitro dev
04

Edit 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."),
            ),
        ),
    )
05

Build for production

Produces a build/ directory of minified HTML, optimized CSS, responsive images, and a sitemap.

nitro build
06

Deploy 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 Pages

You're ready.

Explore the tool docs to go deeper, or jump straight into building.