Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j4ng5y/hashi.up
A simple app to get the hashicorp tools
https://github.com/j4ng5y/hashi.up
consul go golang hashicorp nomad packer terraform vagrant vault
Last synced: 17 days ago
JSON representation
A simple app to get the hashicorp tools
- Host: GitHub
- URL: https://github.com/j4ng5y/hashi.up
- Owner: j4ng5y
- License: apache-2.0
- Created: 2020-06-25T23:22:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-07-14T19:14:08.000Z (over 4 years ago)
- Last Synced: 2024-10-10T09:36:08.796Z (28 days ago)
- Topics: consul, go, golang, hashicorp, nomad, packer, terraform, vagrant, vault
- Language: Go
- Homepage:
- Size: 17.3 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Hashi.UP
This is a little tool to help grab the hashicorp tools more easily, rather than having to go to each web page, find your OS/Arch, and download the tool.
## Getting the tool
Head on over to the [Releases](https://github.com/j4ng5y/hashi.up/releases) page and grab the version you need for your os. This is a simple binary, so no real installation is necessary.
On a *nix system, you may need to provide execution privliedges to run this tool: `chmod +x hashi.up`
## Building from source
You would need to have Go installed and runable, to do this, head over to [The Go Downloads Website](https://golang.org/dl) and install it.
Additionally, you would need to have `make` installed.
Otherwise, simply clone this repository, `cd` into the repository direcotry, and run `make && make install`.
## Usage
```A hashicorp tool downloader/installer/updater/uninstaller.
Usage:
hashi.up [flags]
hashi.up [command]Available Commands:
help Help about any command
install Install one, some, or all of the hashicorp tools
remove Remove one, some, or all of the hashicorp tools
update Update one, some, or all of the hashicorp toolsFlags:
-h, --help help for hashi.up
-v, --version version for hashi.upUse "hashi.up [command] --help" for more information about a command.
```### Hashicorp Tool Installation
```Install one, some, or all of the hashicorp tools
Usage:
hashi.up install [flags]Flags:
--consul string[="1.8.0"] download/install consul at a specific version
--download-only only download the hashicorp tools, but don't install them
-h, --help help for install
--nomad string[="0.11.3"] the nomad version to install, leave blank for latest
--packer string[="1.6.0"] the packer version to install, leave blank for latest
--terraform string[="0.12.28"] the terraform version to install, leave blank for latest
--vagrant string[="2.2.9"] the vagrant version to install, leave blank for latest
--vault string[="1.4.2"] the vault version to install, leave blank for latest
```Example:
To install all tools at their latest versions: `hashi.up install`
To install one tool at it's latest version: `hashi.up install --terraform`
To install one tool at a specific version: `hashi.up install --terraform=0.11.1`
To install multiple, but not all tools at their latest version: `hashi.up install --terraform --packer --vault`
To install multiple, but not all tools at a specific version: `hashi.up install --terraform=0.11.1 --packer=1.5.6 --vault=1.4.0`
### Hashicorp Tool Updates
```Update one, some, or all of the hashicorp tools
Usage:
hashi.up update [flags]Flags:
--consul string[="1.8.0"] the consul version to update to, leave blank for latest
-h, --help help for update
--nomad string[="0.11.3"] the nomad version to update to, leave blank for latest
--packer string[="1.6.0"] the packer version to update to, leave blank for latest
--terraform string[="0.12.28"] the terraform version to update to, leave blank for latest
--vagrant string[="2.2.9"] the vagrant version to update to, leave blank for latest
--vault string[="1.4.2"] the vault version to update to, leave blank for latest
```Example:
To update all tools at their latest versions: `hashi.up update`
To update one tool at it's latest version: `hashi.up update --terraform`
To update one tool at a specific version: `hashi.up update --terraform=0.11.1`
To update multiple, but not all tools at their latest version: `hashi.up update --terraform --packer --vault`
To update multiple, but not all tools at a specific version: `hashi.up update --terraform=0.11.1 --packer=1.5.6 --vault=1.4.0`
### Uninstalling Hashicorp Tools
```Remove one, some, or all of the hashicorp tools
Usage:
hashi.up remove [flags]Flags:
--consul uninstall consul
-h, --help help for remove
--nomad uninstall nomad
--packer uninstall packer
--terraform uninstall terraform
--vagrant uninstall vagrant
--vault uninstall vault
```Example:
To remove all tools: `hashi.up remove`
To remove one tool: `hashi.up remove --terraform`
To remove multiple tools, but not all of them: `hashi.up remove --terraform --packer --vault`
## TODO
* Make the update not do anything if no update is needed
* More code cleanup
* Whatever y'all find## Contributing
Feel free to contribute, I'll set up a whole thing for it if this tool gets used.