A Nix-pilled template for TypeScript CLI apps
Find a file
2026-02-26 14:39:55 +07:00
src janitoring 2026-02-25 17:26:52 +07:00
.gitignore initial commit 2026-02-15 17:42:21 +07:00
biome.json increase hype factor 2026-02-20 23:58:17 +07:00
flake.lock increase hype factor 2026-02-20 23:58:17 +07:00
flake.nix janitoring 2026-02-25 17:26:52 +07:00
package-lock.json janitoring 2026-02-25 17:26:52 +07:00
package.json move ts to devdeps 2026-02-26 14:39:55 +07:00
README.md janitoring 2026-02-25 17:26:52 +07:00
tsconfig.json deduplicate name/version 2026-02-25 16:20:26 +07:00

CLI Template

A minimal CLI template using Stricli and Dax.

Quick Start

nix develop  # optional: provides Node.js, TypeScript
npm install
npm run build
node dist/index.mjs --help

Alternatively, use Nix directly:

nix run . -- --help    # runs the CLI directly
nix shell . --command name-placeholder --help  # provides CLI in PATH

Development

Uses Biome for checks (installed via npm):

npm run check

Renaming

To rename the CLI, edit the name field in package.json. Both the Nix package and the CLI will update automatically.

# Edit package.json, then rebuild:
nix build .

In case Nix complains about the hash, run this to get the correct one and replace in flake.nix:

nix run nixpkgs#prefetch-npm-deps -- package-lock.json