Upload own template

Start

mkdir my-template && cd my-template
npx nowebcli create

Edit

Edit Template.tsx and define its editable fields in customizations.json. Put images, videos and fonts in public/.

import { custom } from "noweb";

export default function Template() {
  return <h1 className="p-12 text-6xl">{custom(1)}</h1>;
}

Preview and publish

noweb check
noweb dev
noweb login
noweb upload

The preview opens at 127.0.0.1:4173. Running upload again updates the same template.

Continue on another device

mkdir my-template && cd my-template
npx nowebcli login
npx nowebcli list
npx nowebcli download my-template

download restores the source, settings and assets into the current folder. It stops if template files already exist.

Delete

npx nowebcli delete my-template

Only templates from your own account can be deleted. Inside the template folder, the slug is optional.