A Nix-pilled template for TypeScript CLI apps
Find a file
2026-02-15 22:02:31 +07:00
src initial commit 2026-02-15 17:42:21 +07:00
.gitignore initial commit 2026-02-15 17:42:21 +07:00
biome.json initial commit 2026-02-15 17:42:21 +07:00
flake.lock initial commit 2026-02-15 17:42:21 +07:00
flake.nix Update flake.nix 2026-02-15 22:02:31 +07:00
package-lock.json initial commit 2026-02-15 17:42:21 +07:00
package.json initial commit 2026-02-15 17:42:21 +07:00
README.md initial commit 2026-02-15 17:42:21 +07:00
tsconfig.json initial commit 2026-02-15 17:42:21 +07:00
tsup.config.ts initial commit 2026-02-15 17:42:21 +07:00

CLI Template

A minimal CLI template using Stricli and Dax.

Quick Start

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

Alternatively, use Nix directly:

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

Development

Uses TypeScript and Biome for checks:

npm run check

Renaming

To rename the CLI from name-placeholder to your desired name:

sed -i 's/name-placeholder/your-new-name/g' package.json src/index.ts flake.nix

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