Skip to content

Instantly share code, notes, and snippets.

@elazarl
Created Jun 28, 2016
Embed
What would you like to do?
List vagrant box download URLs
#!/bin/bash
if [ -z "$@" ]; then
echo Example usage:
echo $0 ubuntu/xenial64
echo Output:
echo https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160627.0.0/providers/virtualbox.box
echo https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160625.0.0/providers/virtualbox.box
echo ...
exit 1
fi
curl -L https://atlas.hashicorp.com/"$@" | jq -r '.versions[].providers[].url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment