Quick start

The recommended way to use DKCutter as a command line utility is to execute it with pnpm dlx, npx, yarn dlx or bunx.

With--init option

To create a base DKCutter template project, run the following command:

npm
yarn
pnpm
bun
npx dkcutter@latest --init
INFO

This feature is only available in the 4.6.0 version or later.

With a GitHub template

To create a project from the dkcutter-nextjs repo template:

npm
yarn
pnpm
bun
npx dkcutter@latest gh:ncontiero/dkcutter-nextjs

DKCutter knows abbreviations for GitHub (gh), Bitbucket (bb), and GitLab (gl) projects, but you can also give it the full URL to any repository:

npm
yarn
pnpm
bun
npx dkcutter@latest https://github.com/ncontiero/dkcutter-nextjs.git

With a local template

npm
yarn
pnpm
bun
npx dkcutter@latest ./dkcutter-nextjs

With JS/TS

index.js
import { dkcutter } from "dkcutter";

// Create project from the dkcutter-nextjs/ template
await dkcutter({ template: "dkcutter-nextjs/" });

// Create project from the gh:ncontiero/dkcutter-nextjs repo template
await dkcutter({ template: "gh:ncontiero/dkcutter-nextjs" });