百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vultr

> 开发工具
开源

:penguin: Vultr CLI 和 API 客户端库

373 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

:penguin: Vultr CLI 和 API 客户端库

vultr

Vultr CLI and API client library, written in Go

Screenshot

Everybody likes screenshots, even of command line tools.. :smile:

Installation

  • Download the latest release for your OS: https://github.com/JamesClonk/vultr/releases
  • Unzip the file
  • Place the vultr binary somewhere into your PATH
  • Export your Vultr API key into a VULTR_API_KEY env variable. You can get the API key from the admin panel
bash
$ export VULTR_API_KEY=87dFbC91rJjkL/18zJEQxS
  • Run it
bash
$ 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:

bash
$ 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
bash
$ 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
bash
$ export VULTR_API_KEY=89dFbb91rGjkL/12zJEQxS
  • Run it
bash
$ 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
bash
$ 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
bash
$ 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
bash
$ 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
bash
$ 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
bash
$ vultr server show 1685097
…

SSH into virtual machine
bash
$ 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:~#

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gocligovirtual-machinevultr

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具