gh-milestone is a gh extension to create/list/view/close milestones.
gh extension install 417-72KI/gh-milestone
You need to set your personal access token of github to GITHUB_TOKEN
environment variable.
If you use github enterprise, you need to set your api base url to GITHUB_BASE_URL
environment variable.
gh milestone list
gh milestone create -t <title>
gh milestone view <milestone_number>
gh milestone close <milestone_number>