### Create Release and Start Discussion Source: https://cli.github.com/manual/gh_release_create Create a release and simultaneously start a discussion thread for it in a specified category. ```bash gh release create v1.2.3 --discussion-category "General" ``` -------------------------------- ### Create Release with Notes Source: https://cli.github.com/manual/gh_release_create Create a release with custom release notes provided directly on the command line. ```bash gh release create v1.2.3 --notes "bugfix release" ``` -------------------------------- ### Create Release from Notes File Source: https://cli.github.com/manual/gh_release_create Provide release notes by reading them from a specified file. Use '-' to read from standard input. ```bash gh release create v1.2.3 -F release-notes.md ``` -------------------------------- ### Select Another Repository Source: https://cli.github.com/manual/gh_release_create Specify a different repository to create the release in, using the HOST/OWNER/REPO format. ```bash gh release create --repo github.com/octocat/Spoon-Knife ``` -------------------------------- ### Upload Release Assets from Directory Source: https://cli.github.com/manual/gh_release_create Upload all files matching a pattern (e.g., all .tgz files in a directory) as assets for the release. ```bash gh release create v1.2.3 ./dist/*.tgz ``` -------------------------------- ### Create Prerelease Source: https://cli.github.com/manual/gh_release_create Mark the release as a prerelease. This is typically used for beta or release candidate versions. ```bash gh release create --prerelease ``` -------------------------------- ### Create a new GitHub Release Source: https://cli.github.com/manual/gh_release_create Use this command to interactively create a new release. It will prompt for necessary information. ```bash gh release create ``` -------------------------------- ### Authenticate with GitHub Enterprise Server Source: https://cli.github.com/manual Run this command to authenticate with your GitHub Enterprise Server instance. Ensure you replace `` with your actual server address. ```bash gh auth login --hostname ``` -------------------------------- ### Create Release with Auto-Generated Notes Source: https://cli.github.com/manual/gh_release_create Utilize the GitHub Release Notes API to automatically generate the release title and notes. ```bash gh release create v1.2.3 --generate-notes ``` -------------------------------- ### Set Release Title Source: https://cli.github.com/manual/gh_release_create Specify a custom title for the release. ```bash gh release create --title "My Awesome Release" ``` -------------------------------- ### Upload Release Asset with Display Label Source: https://cli.github.com/manual/gh_release_create Upload a specific file as a release asset and assign it a custom display label that will be shown in the GitHub UI. ```bash gh release create v1.2.3 '/path/to/asset.zip#My display label' ``` -------------------------------- ### Create Draft Release Source: https://cli.github.com/manual/gh_release_create Save the release as a draft instead of publishing it immediately. Draft releases can be modified or deleted. ```bash gh release create --draft ``` -------------------------------- ### Create Release Using Tag Annotation Source: https://cli.github.com/manual/gh_release_create Use the annotation of a git tag or the associated commit message as the release notes. This is useful for annotated tags. ```bash gh release create v1.2.3 --notes-from-tag ``` -------------------------------- ### Create Release Only if New Commits Exist Source: https://cli.github.com/manual/gh_release_create Configure the command to fail if there are no new commits since the last release. This check is skipped for the very first release. ```bash gh release create v1.2.3 --fail-on-no-commits ``` -------------------------------- ### Verify Tag Existence Source: https://cli.github.com/manual/gh_release_create Abort the release creation process if the specified git tag does not already exist in the remote repository. ```bash gh release create --verify-tag ``` -------------------------------- ### Create Release from Specific Tag Source: https://cli.github.com/manual/gh_release_create Create a release associated with a specific existing git tag. If the tag does not exist, it will be created from the default branch. ```bash gh release create v1.2.3 ``` -------------------------------- ### Authenticate GitHub CLI with Token for Scripting Source: https://cli.github.com/manual For scripting or automation, set the GH_ENTERPRISE_TOKEN environment variable with your access token to authenticate commands against GitHub Enterprise. ```bash export GH_ENTERPRISE_TOKEN= ``` -------------------------------- ### Create Release Not Marked as Latest Source: https://cli.github.com/manual/gh_release_create Create a release but explicitly prevent it from being marked as the 'Latest' release. By default, releases are marked as latest based on date and version. ```bash gh release create v1.2.3 --latest=false ``` -------------------------------- ### Specify Target Branch for Release Source: https://cli.github.com/manual/gh_release_create Set the target branch or commit SHA for which the release is being created. Defaults to the repository's main branch. ```bash gh release create --target main ``` -------------------------------- ### Set Default GitHub Enterprise Host Source: https://cli.github.com/manual Set the GH_HOST environment variable to define your GitHub Enterprise Server instance as the default for all GitHub CLI commands. ```bash export GH_HOST= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.