{"id":21674330,"url":"https://github.com/anhgelus/license-generator","last_synced_at":"2026-02-11T13:34:07.582Z","repository":{"id":148758707,"uuid":"617977089","full_name":"anhgelus/license-generator","owner":"anhgelus","description":"License generator is a cli application helping to generate the LICENSE file for any open source project.","archived":false,"fork":false,"pushed_at":"2024-05-08T13:15:29.000Z","size":107,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T22:27:28.914Z","etag":null,"topics":["cli","cli-app","go","golang","helper","license"],"latest_commit_sha":null,"homepage":"https://projects.anhgelus.world/projects/license-generator","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anhgelus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-23T14:00:21.000Z","updated_at":"2024-05-08T13:15:03.000Z","dependencies_parsed_at":"2024-11-25T16:02:59.788Z","dependency_job_id":null,"html_url":"https://github.com/anhgelus/license-generator","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/anhgelus/license-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhgelus%2Flicense-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhgelus%2Flicense-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhgelus%2Flicense-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhgelus%2Flicense-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anhgelus","download_url":"https://codeload.github.com/anhgelus/license-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhgelus%2Flicense-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cli-app","go","golang","helper","license"],"created_at":"2024-11-25T13:44:06.749Z","updated_at":"2026-02-11T13:34:07.565Z","avatar_url":"https://github.com/anhgelus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# License Generator\n\nLicense generator is a cli application helping to generate the `LICENSE` file for any open source project.\n\n## Installation\n\nTo install the application, you need Go 1.22.\n\nAnd run this command to install it:\n```bash\n$ go install github.com/anhgelus/license-generator@latest\n```\n\nIf after installing the application your shell is saying \"Command not found\", it means that your `$PATH` is not correctly set.\nTo fix this issue, just enter this command (it will fix your path by adding the binaries installed by `go install`):\n```bash\n$ export PATH=${PATH}:`go env GOPATH`/bin\n```\n\n## Build\n\nTo build this application, you need Go 1.22\n\nFirst of all, install every dependency\n\n```bash\n$ go get\n```\n\nNow you can build the project\n\n```bash\n$ go build .\n```\n\nUse the script `setup.sh` to install the binaries!\n\n```bash\n$ sh setup.sh\n```\n\nAnd use it!\n\n## How to use\n\nAfter installing the application, you can use it with a terminal.\n\nTo see the help, just use `license-generator -h`.\n\nNow, let's see how to create a new license.\n\n### Creating a new license\n\nTo create a new license, just run `license-generator` and answer every question.\n\nThe first question is the name of your application. Here it's *license-generator*: this is basically the name of the project.\n\nThen, it will ask you each license do you want to use. Answer with the identifier of the license. For example, it's `gpl` *for GPLv3*.\n\nTo check every available license, use `license-generator -l`.\n\nNext, just answer with the authors of the program and separate each with a coma (,) if there are more than one author.\n\nFinally, answer with the year. It can be `2023` or `2020 - 2023`. \n\nAfter answering these questions, the LICENSE should be generated!\n\n### Creating a new license with arguments\n\nYou can also use arguments to create a new license.\n\n- `--name` is for the name\n- `--license` is for the license identifier\n- `--year` is for the year\n- `--authors` if for authors, actually, it's not working with double quote (\")!\n\nThe uninformed arguments will be asked with the same questions as in the previous part. \n\n### Custom license\n\nIf you want to add custom license to this program, you can! But you must follow this wiki.\n\n#### Create the configuration\n\nCreate a new folder.\nCreate a new file entitled `config.toml`. This file is not required but recommended.\nPaste this content inside:\n```toml\ncustomLicenses = []\n```\nIn the field `customLicenses`, you will put every enabled licenses. When you want to enable a license, just add the file name in the array. When you want to disable a license, just remove the file name from the array.\n\nCreate a new file entitled `your_license.toml`.\nPaste this content inside:\n```toml\npath = \"./cc0.license\"\nname = \"Creative Commons 0\"\nidentifier = \"cc0\"\n```\nIn `path`, put a path (relative or absolute) to the license file. In `name`, put the name of the license. In `identifier`, put the identifier of the license (example: `cc0` for Creative Commons 0 or `gpl` for GPLv3), the identifier is used when we ask you wich license do you want to use.\n\nCreate a new file according to the path put in the `path` variable.\nPut your license inside and replace the year(s) by `{{ .Year }}`, the author(s) by `{{ .Authors }}` and the project name by `{{ .AppName }}`.\n\n#### Use the configuration\n\nNow, to use this configuration, you just need to add  `--config-path PATH_TO_YOUR_CONFIG` when using the command. Just, do not forget to replace the `PATH_TO_YOUR_CONFIG` by the path to your custom config (relative or absolute).\nWhen the program will ask you wich license do you want to use, just use the identifier you put inside the file.\n\n## Technologies\n\n- Go 1.22\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanhgelus%2Flicense-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanhgelus%2Flicense-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanhgelus%2Flicense-generator/lists"}