CLI for Linode API v4
Project description
A reimplementaion of the Linode CLI using the Python Library and API V4.
Installation
pip3 install linode-cli
Builing from Source
To build this package from source:
Clone this repository.
python3 setup.py install
Usage
While the Linode API V4 is in beta, this package installs the command linode-beta.
When running the CLI for the first time, configure it by running linode-beta configure. This will prompt for for your API V4 personal access token and some defaults.
This is intended to be used like the existing Linode CLI, and you can use the existing CLI docs for reference.
In addition, the following commands have been added:
linode-beta -o event list - lists recent Events
linode-beta -o event seen - marks all Events as seen
Examples
List all linodes and their status:
linode-beta list
Create a new Linode with a root password of “hunter7” and label “cli-test-1” in your default region with your default type:
linode-beta create -P hunter7 -l cli-test-1
Shut down your new linode:
linode-beta stop cli-test-1
List your domains:
linode-beta -o domain list
Show recent events:
linode-beta -o event list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for linode_cli-1.0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95516bf586e485b3e388e360e7cd42df7d110f8e09eecda9b1bd7fd48e182a8f |
|
MD5 | a4f75cb20d3b68576e0cda1ab00923e3 |
|
BLAKE2b-256 | 90a1fc453e4c15bf29a403e4d7f308977928c535dfb9b9f74b4723eb0050a27d |