Skip to content

Nmishin/leaseweb-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaseweb CLI

GitHub release (latest SemVer) GitHub all releases

About

leaseweb-cli is unofficial Leaseweb command line tool.

Installation

macOS

leaseweb-cli is available via Homebrew, and as a downloadable binary from releases page.

Homebrew

brew tap nmishin/tap
brew install leaseweb-cli

Linux

leaseweb-cli is available via Homebrew, and as a downloadable binary from releases page.

Homebrew

brew tap nmishin/tap
brew install leaseweb-cli

Usage

Generate your API Key

You can generate your API key at the Customer Portal

Authentication

For authentication need to export API Key from previous step, or set it as --api-key flag.

export LEASEWEB_API_KEY=<>

Supported commands for dedicated-server

$ leaseweb-cli dedicated-server -h

Manage dedicated servers

Usage:
  leaseweb-cli dedicated-server [command]

Available Commands:
  get                  Retrieve details of the server by ID
  get-contract-renewal Retrieve next contract renewal date in milliseconds since epoch by server ID
  get-creds            Retrieve the server credentials
  get-hardware         Retrieve hardware details of the server by ID
  get-ip               Describe the server IP
  get-ips              List the server IPs
  list                 Retrieve the list of servers
  power-off            Power off the server
  power-on             Power on the server
  reboot               Power cycle the server

Flags:
  -h, --help   help for dedicated-server

Global Flags:
      --api-key string   Leaseweb API key (optional, overrides LEASEWEB_API_KEY)

Use "leaseweb-cli dedicated-server [command] --help" for more information about a command.

About

The command line interface for Leaseweb API

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages