CLI

Create a project

Start a new Frigear workspace from a starter with init or pnpm create frigear-app.

init copies a starter into a new directory, names the project after it, installs and writes the .env files. Installation walks through it and the first run.

init

pnpx @frigear-nu/cli init [dir] [--platform <platform>] [-t <template>] [--ref <ref>] [--force] [--no-install]
ArgumentDefaultPurpose
dirfrigear-appDirectory to create. Its name becomes the root package.json name.
--platform, --starterasked, web when not interactiveWhat to build: web, mobile, desktop, web,mobile or web,mobile,desktop, or the starter's name. See the table below.
-t, --templateAny giget source to copy instead of a starter, for example gh:org/repo/path#ref. Not together with --platform.
--refmainBranch or tag of the repository to copy the starter from.
--forcefalseWrite into a directory that is not empty.
--no-installSkip pnpm install and pnpm prepare:env.
--platformStarter (also accepted as the value)What you get
webworkspaceapps/web with sign-in, account pages and user management in the admin area
mobilemobileapps/mobile, a Capacitor app that signs in at an existing issuer
web,mobilemobile-standaloneboth, with apps/web as the app's OAuth server and API
desktopdesktopapps/desktop, a Tauri app that signs in at an existing issuer, or runs offline with its own server
web,mobile,desktopmulti-platformall three, with apps/web as the OAuth server and API of both apps

With -t, the root package.json is still renamed (when there is one), and pnpm prepare:env only runs when the template has that script.

Picked one platform and need another later? platform add adds it to the project you have, with the same root scripts the bigger starter has.

create-frigear-app

pnpm create frigear-app [dir] [--platform <platform>] [-t <template>] [--ref <ref>] [--force] [--no-install]
npm create frigear-app@latest [dir] [--platform <platform>]

create-frigear-app is what pnpm create and npm create find. It has no dependencies: it runs init of @frigear-nu/cli@latest with the package manager that started it (pnpm dlx, npx, yarn dlx or bunx), so it takes the same arguments as init, and every CLI release reaches it without releasing create-frigear-app. The starters come from main unless you pass --ref. Set FRIGEAR_CLI to run another CLI, such as @frigear-nu/cli@0.1.0 or a packed tarball.

Next steps

Copyright © 2026