Skip to content

elasticbyte/hashipm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HashiCorp package manager

Get the latest version of various HashiCorp packages.

Hashipm supports the following packages:

Currently hashipm does not support any Windows specific packages.

A project by Elastic Byte. Built with ❤️ in 🎸 Nashville.

Installation

git clone https://github.com/elasticbyte/hashipm.git
sudo ln -s "$PWD"/hashipm/hashipm.bash /usr/local/bin/hashipm
Bash shell
echo "export HASHIPM_ROOT=$PWD/hashipm" >> "$HOME"/.profile
source "$HOME"/.profile
Zsh shell
echo "export HASHIPM_ROOT=$PWD/hashipm" >> "$HOME"/.zshrc
source "$HOME"/.zshrc

Requirements

  • curl
  • unzip

API/Commands

get

get <package> - Download and install package

➜ hashipm get terraform
Downloading terraform (0.11.7) from https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_darwin_amd64.zip...
Installed terraform (0.11.7) into /usr/local/bin

Or specifing the version

➜ hashipm.bash get terraform 0.12.19
Downloading terraform (0.12.19) from https://releases.hashicorp.com/terraform/0.12.19/terraform_0.12.19_linux_amd64.zip...
Installed terraform (0.12.19) into /usr/local/bin

version

version - Display the current version

➜ hashipm --version
hashipm v0.6.4

help

help - Display help

➜ hashipm --help
Usage: hashipm [--version] [--help] command [command-specific-args]

  get <package>   Download and install package

Changelog

https://github.com/elasticbyte/hashipm/blob/master/CHANGELOG.md

Support, Bugs, And Feature Requests

Create issues here in GitHub (https://github.com/elasticbyte/hashipm/issues).

Versioning

For transparency and insight into the release cycle, and for striving to maintain backward compatibility, hashipm will be maintained under the semantic versioning guidelines.

Releases will be numbered with the follow format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backward compatibility bumps the major (and resets the minor and patch)
  • New additions without breaking backward compatibility bumps the minor (and resets the patch)
  • Bug fixes and misc changes bumps the patch

For more information on semantic versioning, visit https://semver.org.

License & Legal

Copyright 2018-2020 Elastic Byte

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.