Linode CLI

linode-cli

linode-cliHaving a variety of tools is important, especially when managing multiple systems and cloud services. Users and system administrators need to be in control and have the right tool for the job. Many times the tool of choice is the command line.

Introducing Linode CLI

We’re pleased to announce the official release of Linode CLI – a simple, yet powerful and easy-to-use tool to manage and provision Linode cloud services from the command line. The Linode CLI gives users the same functionality they’re accustomed to, but with the convenience of the command line.

The Linode CLI can create, reboot, rename, and resize Linode servers, manage domains and DNS records, NodeBalancers and more. Users can even access their account balance and network transfer. The Linode CLI makes it easy to script and automate tasks with its built-in JSON output mode.

Installing on OS X:

If you don’t already have Homebrew installed on your system, you’ll want to follow their excellent installation instructions. And then from your terminal:

brew tap linode/cli && brew install linode-cli

Installing on Debian / Ubuntu:

echo "deb http://apt.linode.com/ stable main" \
  > /etc/apt/sources.list.d/linode.list
wget -O- https://apt.linode.com/linode.gpg | apt-key add -
apt-get update && apt-get install linode-cli

For other systems please visit Linode CLI on github for more information.

Free and Open Source

The Linode CLI is available to all Linode customers and is open source – dual-licensed under the GPLv2 and the Perl Artistic License. It is actively being developed, including support for API two-factor authentication Real Soon Now™. Stay tuned!

Please visit https://github.com/linode/cli for more information.

Enjoy!

Comments (19)

  1. Laurent

    Hi, i get this error when i try to install it on mavericks:

    Error: undefined method `prepend_create_path’ for #

  2. Alex Ivanovs

    Great news!

  3. Daniel

    Awesome! This helps increase the scope and automation of my chef and capistrano deployments…

  4. Debjit

    How is this different from the LISH offering that you already have?

  5. Harry

    I am receiving this error:

    Error: undefined method `resource’ for LinodeCli:Class
    Please report this bug:
    https://github.com/mxcl/homebrew/wiki/troubleshooting
    /usr/local/Library/Formula/linode-cli.rb:8
    /usr/local/Library/Homebrew/formulary.rb:40:in `require’
    /usr/local/Library/Homebrew/formulary.rb:40:in `klass’
    /usr/local/Library/Homebrew/formulary.rb:90:in `get_formula’
    /usr/local/Library/Homebrew/formulary.rb:175:in `factory’
    /usr/local/Library/Homebrew/formula.rb:410:in `factory’
    /usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae’
    /usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map’
    /usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae’
    /usr/local/Library/Homebrew/cmd/install.rb:22:in `install’
    /usr/local/Library/brew.rb:95:in `send’
    /usr/local/Library/brew.rb:95

  6. Harry

    I needed to install (xcode-select –install) the developer tools. Problem fixed.

  7. Jason LaPorte

    This looks great, and bonus points for putting it in Homebrew! Thanks a ton.

  8. tparker

    @Laurent: That’s usually caused by an outdated Homebrew. Running `brew update` should resolve that.

  9. Curtis Fields

    Please consider submitting a MacPort, too.

    A very large percentage of Mac using customers lack the necessary level of RubyHipster-chlorians in their bloodstream that are necessary to find Homebrew attractive.

  10. Sang Le

    Error: undefined method `prepend_create_path’ for #

  11. Pete

    @Sang_Le see @tparker’s comment.

  12. Jeff Johnson

    Any chance of a yum repo?

  13. Mike Cross

    This is a neat tool. I made a new linode with it! But I can’t figure out how to run a StackScript with the linode cli. Could someone give a simple example? Without running a StackScript, it’s not obvious how I can fully automate a deployment. Thank you!

  14. Daniel Norton

    No, thank you. I don’t store critical server passwords in unknown formats in unknown places in my system.

    Let me know when you have a version that doesn’t require permanent password storage. Perhaps an API key that can be reset?

  15. Les Aker

    Daniel: Not sure what you’re referring to. The API key is stored on your system in ~/.linodecli, or you can store it however you’d like and provide it via the environment variable LINODE_API_KEY or –api-key option:

    https://github.com/linode/cli#initial-configuration

    You can also reset your API key at any time via the Linode Manager’s My Profile tab.

  16. Daniel Norton

    …or an API key that has an expiration time (like the idle timeout for the website) and a cancel capability.

  17. Robert

    Having this CLI is a great feature but I won’t use it if it requires Homebrew to install it. I’ve never liked nor trusted Homebrew and refuse to use it for installing applications.

  18. Les Aker

    Robert: the whole dealio is open source, so you can clone it right from GitHub

  19. medannu

    I am receiving this error : Error: undefined method `resource’ for LinodeCli:Class

Leave a Reply

Your email address will not be published. Required fields are marked *