Install Command
The install
command allows you to install tools defined in YAML configuration files.
Syntax
godyl [flags] install [tools.yml|-]... [flags]
Aliases
i
Description
The install
command reads tool definitions from one or more YAML files (or from standard input) and installs them according to the specified configuration.
If no file is specified, it defaults to using tools.yml
in the current directory.
Additionally, it will respect the GODYL_TOOLS
environment variable, as well as the tools
key in the config file.
Flags
Flag | Environment Variable | Default | Description |
---|---|---|---|
--output , -o | GODYL_INSTALL_OUTPUT | ./bin | Output path for the downloaded tools |
--os | GODYL_INSTALL_OS | "" | Override the OS to match |
--arch | GODYL_INSTALL_ARCH | "" | Override the architecture to match |
--tags , -t | GODYL_INSTALL_TAGS | [] | Tags to filter tools by. Use ! to exclude |
--source | GODYL_INSTALL_SOURCE | github | Source from which to install the tools |
--strategy | GODYL_INSTALL_STRATEGY | none | Strategy to use for updating tools |
--dry | GODYL_INSTALL_DRY | false | Dry run. Will not download, but show what would be done. Implies -v |
Examples
Install tools from tools.yml in the current directory
godyl install
Install tools from multiple files
godyl install tools1.yml tools2.yml
Install tools from stdin
cat tools.yml | godyl install -
Filter tools by tag
godyl install tools.yml --tags cli,downloader
Exclude tools with a specific tag
godyl install tools.yml --tags '!experimental'
Force reinstallation of all tools
godyl install tools.yml --strategy force
Install tools for a different platform
godyl install tools.yml --os linux --arch arm64