https://github.com/nmishin/leaseweb-cli
The command line interface for Leaseweb API
https://github.com/nmishin/leaseweb-cli
leaseweb leaseweb-api
Last synced: over 1 year ago
JSON representation
The command line interface for Leaseweb API
- Host: GitHub
- URL: https://github.com/nmishin/leaseweb-cli
- Owner: Nmishin
- License: mit
- Created: 2025-03-02T10:33:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T20:59:02.000Z (over 1 year ago)
- Last Synced: 2025-04-14T06:50:16.652Z (over 1 year ago)
- Topics: leaseweb, leaseweb-api
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Leaseweb CLI
This tool interacts with Leaseweb's API, allowing users to retrieve details about dedicated servers. It includes commands like `get` to fetch server details and `get-hardware` to retrieve hardware information.
### Install
Download the binary from the [Releases page](https://github.com/Nmishin/leaseweb-cli/releases).
### Build
```bash
git clone git@github.com:Nmishin/leaseweb-cli.git
cd leaseweb-cli
go build -o leaseweb
```
### Generate your API Key
You can generate your API key at the [Customer Portal](https://secure.leaseweb.com/)
### Authentication
For authentication need to export API Key from previous step, or set it as `--api-key` flag.
```bash
export LEASEWEB_API_KEY=<>
```
---
```bash
$ leaseweb-cli dedicated-server -h
Manage dedicated servers
Usage:
leaseweb-cli dedicated-server [command]
Available Commands:
get Retrieve details of the server
get-contract-renewal Retrieve next contract renewal date in milliseconds since epoch
get-creds Retrieve the server credentials
get-hardware Retrieve hardware details of the server
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)
```