• Stars
    star
    376
  • Rank 113,810 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿง Vultr CLI and API client library

vultr

GoDoc License Latest Version Downloads Build Status

Vultr CLI and API client library, written in Go

Screenshot

Screenshot

Everybody likes screenshots, even of command line tools.. ๐Ÿ˜„

Installation

$ export VULTR_API_KEY=87dFbC91rJjkL/18zJEQxS
  • Run it
$ vultr version
Client version:         2.0.3
Vultr API endpoint:     https://api.vultr.com/
Vultr API version:      v1
OS/Arch (client):       linux/amd64
Go version:             go1.16

Installation via brew

Homebrew users can install by:

$ brew install vultr

Installation from source

  • Install the latest version of Go
  • Make sure your GOPATH is set
  • Add $GOPATH/bin to your PATH
  • Use "go get" to download, compile and install the source
$ go get github.com/JamesClonk/vultr
  • Export your Vultr API key into a VULTR_API_KEY env variable. You can get the API key from the admin panel
$ export VULTR_API_KEY=89dFbb91rGjkL/12zJEQxS
  • Run it
$ vultr version
Client version:         2.0.3
Vultr API endpoint:     https://api.vultr.com/
Vultr API version:      v1
OS/Arch (client):       linux/amd64
Go version:             go1.16

Usage

Vultr CLI is a command line tool for using the Vultr API. It allows you to create and manage your virtual machines, SSH public keys, snapshots and startup scripts on your Vultr account. You can also use it to directly SSH into a Vultr virtual machine through the vultr ssh command.

Here a some usage examples:


show help text for a command
$ vultr snapshot --help
Usage: vultr snapshot  COMMAND [arg...]

modify snapshots

Commands:
  create       create a snapshot from an existing virtual machine
  delete       delete a snapshot
  list         list all snapshots on current account

Run 'vultr snapshot COMMAND --help' for more information on a command

list available plans for region
$ vultr plans -r 9
VPSPLANID NAME                                VCPU  RAM   DISK  BANDWIDTH PRICE
30        1024 MB RAM,20 GB SSD,2.00 TB BW    1     1024  20    2.00      7.00
29        768 MB RAM,15 GB SSD,1.00 TB BW     1     768   15    1.00      5.00
3         2048 MB RAM,40 GB SSD,3.00 TB BW    2     2048  40    3.00      15.00
28        8192 MB RAM,120 GB SSD,5.00 TB BW   4     8192  120   5.00      70.00
27        4096 MB RAM,65 GB SSD,4.00 TB BW    2     4096  65    4.00      35.00

add SSH public key
$ vultr sshkey create -n sampleKey --key="$(cat ~/.ssh/id_rsa.pub)"
SSH key create success!

SSHKEYID        NAME        KEY
24c81f53be692   sampleKey   ssh-rsa AAAB3NzaC1yc2EQABAQClpsNAM+huOB2dpxM..

create new virtual machine
$ vultr server create -n "test-server" -r 9 -p 29 -o 127
Virtual machine create success!

SUBID           NAME            DCID    VPSPLANID       OSID
1685097         test-server     9       29              127

show information about virtual machine
$ vultr server show 1685097
Id (SUBID):             1685097
Name:                   test-server
Operating system:       CentOS 6 x64
Status:                 active
Power status:           running
Location:               Frankfurt
Region (DCID):          9
VCPU count:             1
RAM:                    768 MB
Disk:                   Virtual 15 GB
Allowed bandwidth:      1000
Current bandwidth:      0
Cost per month:         5.00
Pending charges:        0.01
Plan (VPSPLANID):       29
IP:                     107.62.131.240
Netmask:                255.255.254.0
Gateway:                107.62.131.1
Internal IP:
#1 IPv6 IP:
#1 IPv6 Network:        ::
#1 IPv6 Network Size:   0
Created date:           2015-02-08 12:36:36
Default password:       sbiecxo8yk!5
Auto backups:           no
KVM URL:                https://my.vultr.com/subs/vps/novnc/api.php?data=ILXS..

SSH into virtual machine
$ vultr ssh 1685097
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-37-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Thu Oct 16 21:49:35 2014 from 10.0.2.2
root@vultr:~#


More Repositories

1

go-todotxt

๐Ÿ“ Golang client library for todo.txt files
Go
30
star
2

easy-vpn

๐Ÿ’ฃ commandline tool to spin up a VPN server on a cloud VPS that self-destructs after reaching a timelimit
Go
26
star
3

alarm-clock

โฐ An alarm clock that syncs with Google Calendar, for the Adafruit Raspberry Pi 16x2 LCD+Keypad Kit
Python
12
star
4

dashboard

๐Ÿ“Š a simple Linux dashboard
Go
10
star
5

k8s-infrastructure

K8s infrastructure repository
Shell
9
star
6

k8s-deployments

K8s deployments repository
Shell
7
star
7

simracing-rig

Design sketches & plans for a simracing rig ๐ŸŽฎ ๐Ÿš— ๐Ÿ
6
star
8

iRcollector

collector component for iRacing data ๐ŸŽ
Go
5
star
9

iRvisualizer

visualizer component for displaying iRacing graphs & data ๐ŸŽ
Go
5
star
10

iR60TelemetryProvider

๐ŸŽ iRacing 60Hz Telemetry Provider for SimFeedback
C#
4
star
11

todoapp

A browser-based Todo.txt application
Go
3
star
12

compose-broker

โœจ a Compose.io service broker for โ˜๏ธ Cloud Foundry and โ›ต Kubernetes
Go
3
star
13

turbojira

๐ŸŒ a simple android app for quick jira usage
Java
3
star
14

elephantsql-broker

๐Ÿ˜ an ElephantSQL service broker for โ˜๏ธ Cloud Foundry and โ›ต Kubernetes
Go
3
star
15

notes

What to do..
3
star
16

iRdiscordbot

Discord bot for displaying iRacing graphs & data in Discord
Go
2
star
17

backman

๐Ÿ’ฝ a cloud foundry app that backs up your databases
Go
2
star
18

minecraft-server-app

Push a Minecraft server as an app to Cloud Foundry โ˜๏ธ
Go
1
star
19

deployments

K8s deployments repository
Shell
1
star
20

docker-pptpd

๐Ÿณ a docker pptpd image
Shell
1
star
21

c2cn_demo

cloudfoundry container-to-container networking demo
Go
1
star
22

RingtoneRandomizer

๐Ÿ“ฑ ๐Ÿ”‰ an android ringtone randomizer app
Java
1
star
23

cryptmount

๐Ÿ’ฝ a tool for easy mounting of encrypted devices
Go
1
star
24

reverse-proxy

A simple Go reverse proxy
Go
1
star
25

home-info-dashboard

Go
1
star
26

JamesClonk.github.io

Ramblings about all things technical
HTML
1
star
27

SimFeedback-AC-Servo.wiki-copy

1
star
28

terraform-vcloud-kubernetes

Deploy Kubernetes on vCloud / Swisscom DCS+
HCL
1
star
29

opsgenie-tray

๐Ÿ‘ณโ€โ™‚๏ธ๐Ÿšฉ Tray indicator app for OpsGenie
Go
1
star
30

postgres-ha-boshrelease

๐Ÿ˜ a postgresql boshrelease
1
star
31

home_automation

stuff for my raspberry pi
Python
1
star
32

jcio

Build the complete JCIO server and application setup on DigitalOcean
Go
1
star
33

mediadb

๐ŸŽฅ Read/parse (java) your media files into a database (mysql or sqlite3) and then use the website (php) to view its contents.
PHP
1
star
34

kubeone-dcs-kubernetes

Deploy Kubernetes with KubeOne on Swisscom DCS+
Shell
1
star