Skip to content

Instantly share code, notes, and snippets.

@dkastl
Created March 6, 2021 07:54
Show Gist options
  • Save dkastl/2d98e781c35def56da6fce80e7fad351 to your computer and use it in GitHub Desktop.
Save dkastl/2d98e781c35def56da6fce80e7fad351 to your computer and use it in GitHub Desktop.
Reuse sample commands

A memo of REUSE commands

Find out more about the REUSE project.

  • Initialize a project
reuse init
  • Lint and validate a repository
reuse lint
  • Download all licenses
reuse download --all
  • Add license headers to files
reuse addheader --copyright="GTT contributors <foss@georepublic.info>" \
                --license="CC0-1.0" .gitignore .editorconfig .gitmodules 
                
reuse addheader --copyright="GTT contributors <foss@georepublic.info>" \
                --license="GPL-3.0-or-later" --skip-unrecognised docker-* Dockerfile README.md 
                
reuse addheader --copyright="GTT contributors <foss@georepublic.info>" \
                --license="GPL-3.0-or-later" --style Python Gemfile.local 
  • Print license information
reuse spdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment