github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/www/docs/cmd/goreleaser_build.md (about)

     1  # goreleaser build
     2  
     3  Builds the current project
     4  
     5  ## Synopsis
     6  
     7  The build command allows you to execute only a subset of the pipeline, i.e. only the build step with its dependencies.
     8  
     9  It allows you to quickly check if your GoReleaser build configurations are doing what you expect.
    10  
    11  Finally, it allows you to generate a local build for your current machine only using the `--single-target` option, and specific build IDs using the `--id` option.
    12  
    13  
    14  ```
    15  goreleaser build [flags]
    16  ```
    17  
    18  ## Options
    19  
    20  ```
    21    -f, --config string      Load configuration from file
    22    -h, --help               help for build
    23        --id string          Builds only the specified build id
    24    -p, --parallelism int    Amount tasks to run concurrently (default: number of CPUs)
    25        --rm-dist            Remove the dist folder before building
    26        --single-target      Builds only for current GOOS and GOARCH
    27        --skip-post-hooks    Skips all post-build hooks
    28        --skip-validate      Skips several sanity checks
    29        --snapshot           Generate an unversioned snapshot build, skipping all validations
    30        --timeout duration   Timeout to the entire build process (default 30m0s)
    31  ```
    32  
    33  ## Options inherited from parent commands
    34  
    35  ```
    36        --debug   Enable debug mode
    37  ```
    38  
    39  ## See also
    40  
    41  * [goreleaser](/cmd/goreleaser/)	 - Deliver Go binaries as fast and easily as possible
    42