Skip to main content

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 Distribution

linode-cli-1.0.0b0.macosx-10.11-x86_64.tar.gz (24.0 kB view hashes)

Uploaded Source

Built Distribution

linode_cli-1.0.0b0-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page