Sumi

Netlify

Netlify is a hosting service for static sites. Sumi publishes to it directly through the Netlify API, so there is no extra tooling to install. You need a Netlify account with a site created in it, and two values from that account.

Configuration

Choose Netlify during sumi init, or add this to sumi.json later:

JSON
{
  "deploy": {
    "provider": "netlify"
  }
}

Environment variables

Deploying needs two values from your Netlify account:

VariableWhat it is
NETLIFY_SITE_IDThe project ID shown in Netlify project settings.
NETLIFY_AUTH_TOKENA Netlify personal access token.

For local publishing, put those values in .env. For automated publishing, add them as CI secrets or variables.

Before the first publish, confirm the Netlify variables are available:

Terminal
$./sumi doctor

Publishing

With the variables in place, publish the site:

Terminal
$./sumi publish

You do not need the Netlify CLI installed. Sumi publishes the configured build output directly to the Netlify site identified by NETLIFY_SITE_ID.

Sumi is a NekoLab project. See everything we make