Download Command
The download
command allows you to download (and extract if necessary) individual tools without requiring a configuration file.
Syntax
godyl [flags] download [tool, URL]... [flags]
Aliases
dl
x
Description
The download
command provides a quick way to download tools. You can specify tools in the format owner/repo
for GitHub/GitLab repositories, or provide a full URL.
When using the download
command, the tool will be downloaded and extracted directly into the output directory.
Flags
Flag | Environment Variable | Default | Description |
---|---|---|---|
--output , -o | GODYL_DOWNLOAD_OUTPUT | ./bin | Output path for the downloaded tools |
--source | GODYL_DOWNLOAD_SOURCE | github | Source from which to install the tools |
--os | GODYL_DOWNLOAD_OS | "" | Operating system to use for downloading |
--arch | GODYL_DOWNLOAD_ARCH | "" | Architecture to use for downloading |
--hint | GODYL_DOWNLOAD_HINT | [""] | Add hint patterns with weight 1 |
--version , -v | GODYL_DOWNLOAD_VERSION | "" | Version to download. Will set the {{ .Version }} template variable |
--dry | GODYL_DOWNLOAD_DRY | false | Dry run. Will not download, but show what would be done. Implies -v |
Examples
Download a specific version
godyl download idelchi/envprof --version v0.1.0
Download multiple tools
godyl download idelchi/envprof idelchi/tcisd
Download from a direct URL
godyl download "https://github.com/idelchi/go-next-tag/releases/download/v0.0.1/go-next-tag_{{ .OS }}_{{ .ARCH }}.tar.gz"
or
godyl download "https://github.com/idelchi/go-next-tag/releases/download/{{ .Version }}/go-next-tag_{{ .OS }}_{{ .ARCH }}.tar.gz" --version v0.0.1