All Projects → yikaus → vultrcli

yikaus / vultrcli

Licence: other
CLI tool to manage Vultr VPS clould

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to vultrcli

scalr
Autoscaling for Clouds
Stars: ✭ 17 (-32%)
Mutual labels:  vultr
Lexicon
Manipulate DNS records on various DNS providers in a standardized way.
Stars: ✭ 1,028 (+4012%)
Mutual labels:  vultr
Terraform Provider Vultr
Terraform Vultr Provider
Stars: ✭ 172 (+588%)
Mutual labels:  vultr
vultr-proxy-tool
A program to create proxies using the Vultr API.
Stars: ✭ 15 (-40%)
Mutual labels:  vultr
Vps Recommendation
列舉出靠譜、實惠、優秀的VPS供應商,歡迎留言完善 
Stars: ✭ 392 (+1468%)
Mutual labels:  vultr
Firewalltutor
自建梯子教程, 翻墙教程, 科学上网, google https://github.com/firewallTutor/firewallTutor
Stars: ✭ 83 (+232%)
Mutual labels:  vultr
terraform-vultr-condor
Kubernetes Deployment Tool for Vultr
Stars: ✭ 60 (+140%)
Mutual labels:  vultr
Freedom
一个小白对于科学上网的一些切身感受的整理,自己捋思路,同时也为方便他人。发现错误的地方欢迎斧正。顺便也会不断整理一些实用资源及工具。
Stars: ✭ 236 (+844%)
Mutual labels:  vultr
Docker Bitcoind
💰 Bitcoind Docker image that runs the Bitcoin node in a container for easy deployment
Stars: ✭ 391 (+1464%)
Mutual labels:  vultr
Deno vultr
按需启动 Vultr 实例,实现每个月只需要 2 美元的 VPS
Stars: ✭ 168 (+572%)
Mutual labels:  vultr
Cloudbrute
Awesome cloud enumerator
Stars: ✭ 268 (+972%)
Mutual labels:  vultr
Vultr
🐧 Vultr CLI and API client library
Stars: ✭ 357 (+1328%)
Mutual labels:  vultr
Shadowsocks Tutorial
🐱给小白的Shadowsocks和V2ray翻墙教程
Stars: ✭ 1,273 (+4992%)
Mutual labels:  vultr
warp
WARP one-click script. Add an IPv4, IPv6 or dual-stack CloudFlare WARP network interface and Socks5 proxy for VPS. 一键脚本
Stars: ✭ 950 (+3700%)
Mutual labels:  vultr
Docker Machine Vultr
Ⓜ️ Docker Machine driver for Vultr Cloud
Stars: ✭ 185 (+640%)
Mutual labels:  vultr
jsbox-vultr-helper
一款运行在 JSBox (iOS) 上的 Vultr 服务器账户查询小工具
Stars: ✭ 27 (+8%)
Mutual labels:  vultr
Vultrdash
Vultr self-hosted dashboard.
Stars: ✭ 59 (+136%)
Mutual labels:  vultr
Vultr Cli
Official command line tool for Vultr services
Stars: ✭ 235 (+840%)
Mutual labels:  vultr
Vps
A handy bash script to setup crypto masternodes in no time. Initially developed for $PIVX. Now many more ;-)
Stars: ✭ 220 (+780%)
Mutual labels:  vultr
Govultr
Vultr Go API client
Stars: ✭ 144 (+476%)
Mutual labels:  vultr
vucli 0.0.3 (Vultr cloud server CLI tool)
======================

vucli is a CLI tool to manage Vultr VPS ,it invoked Vultr public REST service , see details https://www.vultr.com/api/

all functions are in single py file , you can also directly copy the code and run it .


.. contents::

Changes
-------

**0.0.1**: Initial drop

**0.0.2**: Add start script & snapshot management ,  create server with startscript or snapshot ,showing current_charge in serverlist

**0.0.3** Added Windows support - install pyreadline when on Windows , Thanks to PieterScheffers

Requirements
-------------

1. Python 2.6 +
2. python requests and argparse package if you want to directly run


Direct RUN
-------------
git clone https://github.com/yikaus/vultrcli
cd vultrcli/vucli
chmod +x vucli.py
./vucli.py


Installation (all dependency will be installed)
------------

$sudo pip install vucli

$vucli

To Use
------------

Interactive mode
------------

vucli

OR

./vucli.py

##########################
#     Vultr Cloud CLI    #
#                        #
#            v1          #
#                        #
##########################

Type help to load help page .

vultr_cli>>help

Interactive Usage : vucli

Usage: vucli <command> [options]

Commands:
     planlist          list all VPS plans
     regionlist        list all available regions
     oslist            list all operating system images
     snapshotlist      list all snapshots
     newsnapshot       create a snapshot with subid
     snapshotdestroy   delete a snapshot
     serverlist        list all servers
     reboot            restart server by server id
     halt              hard stop server by server id
     start             start server by server id
     destroy           destroy server by server id
     reinstall         reinstall server by server id
     create            create new server
     scriptlist        list all start script
     scriptdestroy     delete particular start script
     newscript         create new server
     create            create start script
     changekey         reset API key (only worked in interactive mode)
     quit              quit interactive mode (only worked in interactive mode)

vultr_cli>>
vultr_cli>>regionlist
country    state   DCID          name       continent
FR                   24        France          Europe
JP                   25         Tokyo            Asia
AU                   19     Australia       Australia
US            NJ      1    New Jersey   North America
US            TX      3        Dallas   North America
...
...

vultr_cli>>oslist
OSID    arch                      name     family
151     i386   Debian 6 i386 (squeeze)     debian
147     i386             CentOS 6 i386     centos
138      x64    Debian 6 x64 (squeeze)     debian
140      x64            FreeBSD 10 x64    freebsd
...
...

vultr_cli>>serverlist
please enter your user key :xxxxxxxxxxxxxxxxx
SUBID                    os      ram   vcpu            disk              ip      location   DCID   VPSPLANID   Cost    status
1371543    Ubuntu 12.04 x64   768 MB      1   Virtual 15 GB   xxx.xx.xx.xxx   Los Angeles      5          29   5.00   running

vultr_cli>>halt 1371543
Operation Successful!
vultr_cli>>serverlist
SUBID                    os      ram   vcpu            disk              ip      location   DCID   VPSPLANID   Cost    status
1371543    Ubuntu 12.04 x64   768 MB      1   Virtual 15 GB   xxx.xx.xx.xxx   Los Angeles      5          29   5.00   stopped
vultr_cli>>start 1371543
Operation Successful!
vultr_cli>>serverlist
SUBID                    os      ram   vcpu            disk              ip      location   DCID   VPSPLANID   Cost    status
1371543    Ubuntu 12.04 x64   768 MB      1   Virtual 15 GB   xxx.xx.xx.xxx   Los Angeles      5          29   5.00   running

Command mode
------------

./vucli.py -h

Interactive Usage : vucli

Usage: vucli <command> [options]

Commands:
     planlist          list all VPS plans
     regionlist        list all available regions
     oslist            list all operating system images
     snapshotlist      list all snapshots
     newsnapshot       create a snapshot with subid
     snapshotdestroy   delete a snapshot
     serverlist        list all servers
     reboot            restart server by server id
     halt              hard stop server by server id
     start             start server by server id
     destroy           destroy server by server id
     reinstall         reinstall server by server id
     create            create new server
     scriptlist        list all start script
     scriptdestroy     delete particular start script
     newscript         create new server
     create            create start script
     changekey         reset API key (only worked in interactive mode)
     quit              quit interactive mode (only worked in interactive mode)
Options:
     -k  <APIKEY>      provide API key
     -id <SUBID>       provide server id
     -d  <DCID>        provide datacenter DCID
     -p  <PLANID>      provide PLANID
     -os <OSID>        provide OS image ID
     -f <SCRIPTPATH>   provide script file path
     -st <SCRIPTID>    provide script id
     -sn <SCRIPTNAME>  provide script name
     -ss <SUBID>       provide server id to create a snapshot
     -sd <SNAPDESC>    provide snapshot description

Examples:
  create instance with OSID 128 at DCID 5 and planid 29 ,script id 245
      vucli create -k <yourkey> -d 5 -p 29 -os 128 -st 245

  create instance with SNAPSHOTID 53bdd6e0d6414 at DCID 5 and planid 29
      vucli create -k <yourkey> -d 5 -p 29 -ss 53bdd6e0d6414
      provide OS image ID


Usage example:

./vucli.py oslist

OSID    arch                      name     family
151     i386   Debian 6 i386 (squeeze)     debian
147     i386             CentOS 6 i386     centos
138      x64    Debian 6 x64 (squeeze)     debian
.....

./vucli.py create -k <yourkey> -d 5 -os 128 -p 29
Server Created with SUBID
{"SUBID":"1371543"}

./vucli.py serverlist -k <yourkey>
SUBID                    os      ram   vcpu            disk              ip      location   DCID   VPSPLANID   Cost    status
1371543    Ubuntu 12.04 x64   768 MB      1   Virtual 15 GB   xxx.xx.xx.xxx   Los Angeles      5          29   5.00   running

./vucli.py reboot -k <yourkey> -id 1371543
Operation Successful!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].