2021-04-22 10:45:36 -03:00
# goreleaser release
Releases the current project
```
goreleaser release [flags]
```
## Options
```
2022-12-29 14:21:04 -03:00
--auto-snapshot Automatically sets --snapshot if the repository is dirty
2024-04-01 10:26:09 -03:00
--clean Removes the 'dist' directory
2021-05-21 21:07:47 -03:00
-f, --config string Load configuration from file
2024-04-22 23:51:00 -03:00
--draft Whether to set the release to draft. Overrides release.draft in the configuration file
2023-06-20 12:43:11 +00:00
--fail-fast Whether to abort the release publishing on the first error
2021-05-21 21:07:47 -03:00
-h, --help help for release
2024-05-09 23:17:11 -03:00
--id stringArray Builds only the specified build ids (implies --skip=publish) (Pro only)
2023-06-13 14:54:44 +00:00
-k, --key string GoReleaser Pro license key [$GORELEASER_KEY] (Pro only)
2024-05-09 23:17:11 -03:00
--nightly Generate a nightly build, publishing artifacts that support it (implies --skip=announce,validate; overrides --nightly) (Pro only)
2021-05-21 21:07:47 -03:00
-p, --parallelism int Amount tasks to run concurrently (default: number of CPUs)
2024-05-09 23:17:11 -03:00
--prepare Will run the release in such way that it can be published and announced later with goreleaser publish and goreleaser announce (implies --skip=publish,announce,after) (Pro only)
2021-05-21 21:07:47 -03:00
--release-footer string Load custom release notes footer from a markdown file
--release-footer-tmpl string Load custom release notes footer from a templated markdown file (overrides --release-footer)
--release-header string Load custom release notes header from a markdown file
--release-header-tmpl string Load custom release notes header from a templated markdown file (overrides --release-header)
2022-01-30 11:31:10 -03:00
--release-notes string Load custom release notes from a markdown file (will skip GoReleaser changelog generation)
2021-05-21 21:07:47 -03:00
--release-notes-tmpl string Load custom release notes from a templated markdown file (overrides --release-notes)
2024-05-09 23:17:11 -03:00
--single-target Builds only for current GOOS and GOARCH, regardless of what's set in the configuration file (implies --skip=publish) (Pro only)
2024-08-03 14:30:10 -03:00
--skip strings Skip the given options (valid options are: after, announce, archive, aur, before, before-publish, chocolatey, cloudsmith, dmg, docker, dockerhub, fury, homebrew, ko, msi, nfpm, nix, notarize, publish, report-sizes, sbom, scoop, sign, snapcraft, validate, winget)
2023-09-17 03:00:02 +00:00
--snapshot Generate an unversioned snapshot release, skipping all validations and without publishing any artifacts (implies --skip=announce,publish,validate)
2023-06-13 14:54:44 +00:00
--split Split the build so it can be merged and published later (implies --prepare) (Pro only)
2021-05-21 21:07:47 -03:00
--timeout duration Timeout to the entire release process (default 30m0s)
2021-04-22 10:45:36 -03:00
```
## Options inherited from parent commands
```
2023-05-28 02:20:48 +00:00
--verbose Enable verbose mode
2021-04-22 10:45:36 -03:00
```
## See also
2024-07-08 23:30:10 -03:00
* [goreleaser ](goreleaser.md ) - Deliver Go binaries as fast and easily as possible
2021-04-22 10:45:36 -03:00