Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mislav/gh-license

GitHub CLI extension to add a license to the current project
https://github.com/mislav/gh-license

gh-extension

Last synced: 26 days ago
JSON representation

GitHub CLI extension to add a license to the current project

Awesome Lists containing this project

README

        

# gh license

Add a LICENSE file to the current directory.

Usage:
```sh
$ gh extension install mislav/gh-license

# list available licenses
$ gh license

# add a specific license
$ gh license bsd-3-clause
```

The result will be a LICENSE file in the current directory:
```
$ head LICENSE
BSD 3-Clause License

Copyright (c) 2022, Mislav Marohnić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
```

You can also choose a license interactively through the web interface:
```
gh license --web
```