Giter Club home page Giter Club logo

linode-cli's Introduction

linode-cli

A reimplementation of the Linode CLI using the Python Library and API V4.

Installation

pip3 install linode-cli

Building 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-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 Events
  • linode-cli event seen - marks all Events as seen
  • linode-cli backups-show LINODE - show backups for a Linode
  • linode-cli snapshot LINODE - create a snapshot of a Linode
  • linode-cli backups-restore LINODE BACKUPID -l TARGET -f - restore a backup
  • linode-cli backups-enable LINODE - enable backups for a Linode
  • linode-cli backups-cancel LINODE - cancel backups for a Linode
  • linode-cli ticket list - list tickets open on your account
  • linode-cli ticket show TICKETID - show a ticket and its replies
  • linode-cli volume list - list all Block Storage Volumes
  • linode-cli volume show VOLUME - show information about a Volume
  • linode-cli volume create LABEL -l LINODE - create a volume attached to a Linode
  • linode-cli volume rename LABEL NEW_LABEL - rename a volume
  • linode-cli volume attach LABEL LINODE - attach a volume to a Linode
  • linode-cli volume detach LABEL - detach a volume
  • linode-cli volume delete LABEL - delete a volume

Examples

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

linode-cli's People

Contributors

dorthu avatar dwfreed avatar robertderose avatar stvhwrd avatar tjhop avatar rmcintosh avatar

Watchers

Xusheng Li avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.