Interactive wizard
Run the command from the root of the project you want to license and you'll be guided through a short flow:
npx license-wizard
- Choose a license. Start typing to search the full SPDX catalog (e.g.
MIT,Apache-2.0,GPL-3.0-or-later) and select one. If your project already declares a license, it's offered as the default. - Standard or customized. If the license has fillable copyright fields, keep the official text verbatim or fill in each field — typically the copyright holder and year.
- Save your settings. Choose whether to remember your selection for next time.
When you're done, License Wizard writes the LICENSE file and records the selected identifier in every manifest it finds. If you opted in, it also offers to stamp source-file headers.
Prefer to skip the prompts? Every step has a flag equivalent — see one-shot generation and scripting & agents.