2025-05-10 18:07:51 +01:00
|
|
|
# reuse
|
|
|
|
|
|
|
|
> Tool for compliance with the REUSE recommendations.
|
|
|
|
> More information: <https://reuse.readthedocs.io/en/stable/man/index.html>.
|
|
|
|
|
|
|
|
- Lint for REUSE compliance for the current project (version control aware):
|
|
|
|
|
|
|
|
`reuse lint`
|
|
|
|
|
|
|
|
- Lint for REUSE compliance from the specified directory:
|
|
|
|
|
|
|
|
`reuse --root {{path/to/directory}} lint`
|
|
|
|
|
2025-05-24 05:48:57 +00:00
|
|
|
- Add copyright statement to file:
|
|
|
|
|
|
|
|
`reuse annotate {{[-c|--copyright]}} "{{your_name}} <{{your_email}}>" --fallback-dot-license {{path/to/file}}`
|
|
|
|
|
|
|
|
- Add licence information to file:
|
|
|
|
|
|
|
|
`reuse annotate {{[-l|--license]}} {{spdx_identifier}} --fallback-dot-license {{path/to/file}}`
|
|
|
|
|
2025-05-10 18:07:51 +01:00
|
|
|
- Download a license by its SPDX identifier and place it in the LICENSES directory:
|
|
|
|
|
|
|
|
`reuse download {{spdx-identifier}}`
|
|
|
|
|
|
|
|
- Download all missing licenses detected in the project:
|
|
|
|
|
|
|
|
`reuse download --all`
|