On this page

Getting started

Run it directly — no install required. Use whichever package manager you have:

npx license-wizard       # npm
pnpm dlx license-wizard  # pnpm
yarn dlx license-wizard  # yarn
bunx license-wizard      # bun

Or install it globally and run it in any project directory:

npm install -g license-wizard

What a run produces

  • A LICENSE file in the current directory, containing the official text of the license you chose.
  • The selected SPDX identifier written into the license field of every manifest it finds (package.json, composer.json).
  • Optionally, a small saved configuration so future runs start from your last choice, and per-file license headers across your source.

Requirements

  • Node.js >= 22.13.0
  • Network access — license text is fetched from the official SPDX list, so every file you generate matches the canonical source exactly.