Skip to main content

License (LICENSE)

Create a LICENSE file populated with the chosen license type, author legal name, and year range from the Nova config.

Why Use This Command?

  • Supports 13 open-source licenses and a proprietary option so you can pick the right one from the config.
  • Auto-fills legal boilerplate so the license stays accurate when the year rolls over or ownership changes.
  • Pulls the license type, author name, and starting year directly from nova.config.json, eliminating manual edits.

Requirements

  • Node.js runtime — Use any Node.js LTS release.
  • Project root — Run the command from the directory containing the top-level package.json.
  • nova.config.json — A valid config file must exist at the project root with the fields listed below.

Usage

Options

FlagDescription
-d, --dry-runPreview the target file path without writing anything to disk.
-r, --replace-fileOverwrite the existing file instead of creating a .nova-backup copy.

Config Fields

FieldDescription
project.legalNameThe legal name used in the copyright notice.
project.licenseSPDX license identifier. If not set, you are prompted to select a license interactively.
project.startingYearThe year the project was first published (defaults to now).

Supported Licenses

SPDX IdentifierLicense Name
AGPL-3.0GNU Affero General Public License v3.0
Apache-2.0Apache License 2.0
BSD-2-ClauseBSD 2-Clause "Simplified" License
BSD-3-ClauseBSD 3-Clause "New" or "Revised" License
BSL-1.0Boost Software License 1.0
CC0-1.0Creative Commons Zero v1.0 Universal
EPL-2.0Eclipse Public License 2.0
GPL-2.0GNU General Public License v2.0
GPL-3.0GNU General Public License v3.0
LGPL-2.1GNU Lesser General Public License v2.1
MITMIT License
MPL-2.0Mozilla Public License 2.0
UnlicenseThe Unlicense
ProprietaryProprietary (All Rights Reserved)

Output Files

FileDescription
LICENSELicense file populated with author name and year range.