A reimplementation of the Linode CLI using the Python Library and API V4.
pip3 install linode-cli
To build this package from source:
- Clone this repository.
python3 setup.py install
While the Linode API V4 is in beta, this package installs the command
linode-cli
.
When running the CLI for the first time, configure it by running
linode-cli configure
. This will prompt 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-cli event list
- lists recent Eventslinode-cli event seen
- marks all Events as seenlinode-cli backups-show LINODE
- show backups for a Linodelinode-cli snapshot LINODE
- create a snapshot of a Linodelinode-cli backups-restore LINODE BACKUPID -l TARGET -f
- restore a backuplinode-cli backups-enable LINODE
- enable backups for a Linodelinode-cli backups-cancel LINODE
- cancel backups for a Linodelinode-cli ticket list
- list tickets open on your accountlinode-cli ticket show TICKETID
- show a ticket and its replieslinode-cli volume list
- list all Block Storage Volumeslinode-cli volume show VOLUME
- show information about a Volumelinode-cli volume create LABEL -l LINODE
- create a volume attached to a Linodelinode-cli volume rename LABEL NEW_LABEL
- rename a volumelinode-cli volume attach LABEL LINODE
- attach a volume to a Linodelinode-cli volume detach LABEL
- detach a volumelinode-cli volume delete LABEL
- delete a volume
List all Linodes and their status:
linode-cli 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-cli create -P hunter7 -l cli-test-1
Shut down your new Linode:
linode-cli stop cli-test-1
Show a Linode's Backups:
linode-cli backups-show cli-test-1
List your domains:
linode-cli domain list
Show recent events:
linode-cli event list
Show open tickets:
linode-cli ticket list
See all volumes and their attachments:
linode-cli volume list
Create a new 100 GB volume attached to a Linode:
linode-cli volume create cli-test-volume -l cli-test -s 100