> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# license-notice-report

> Generate license notice reports for a package version from the command line.

The `license-notice-report` command manages license notice reports for package versions. The report includes license texts, copyright notices, and other attribution information that should be included when distributing software that uses the specified package.

The syntax of the `endorctl license-notice-report` command is:

```bash theme={null}
endorctl license-notice-report [command] [flags]
```

## Usage

Use the `endorctl license-notice-report generate` command to initiate report generation for a package version:

```bash theme={null}
endorctl license-notice-report generate --namespace <namespace> --package-version-uuid <uuid> [flags]
```

## Options

The `endorctl license-notice-report generate` command uses the following flags:




&#x20; \- Flag: \`group-by-license\`
&#x20; Environment\_Variable: \`ENDOR\_LICENSE\_NOTICE\_REPORT\_GROUP\_BY\_LICENSE\`
&#x20; Type: boolean
&#x20; Description: Group the report entries by license type. Set to \`false\` to group by dependency instead. Defaults to \`true\`.

&#x20; \- Flag: \`n\`, \`namespace\`
&#x20; Environment\_Variable: \`ENDOR\_NAMESPACE\`
&#x20; Type: string
&#x20; Description: Set the namespace of the project that contains the package version. Required.

&#x20; \- Flag: \`package-version-uuid\`
&#x20; Environment\_Variable: \`ENDOR\_LICENSE\_NOTICE\_REPORT\_PACKAGE\_VERSION\_UUID\`
&#x20; Type: string
&#x20; Description: UUID of the package version to generate the notice report for. Required.

&#x20; \- Flag: \`report-type\`
&#x20; Environment\_Variable: \`ENDOR\_LICENSE\_NOTICE\_REPORT\_REPORT\_TYPE\`
&#x20; Type: string
&#x20; Description: Output format for the report (\`pdf\`, \`txt\`, \`html\`, or \`md\`). Default is \`pdf\`.


&#x20;&#x20;

See [Licenses](https://docs.endorlabs.com/inventory-insights/licenses.md#generate-a-license-notice-report-for-a-project-beta) for more information.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.