Fetching contributors…
Cannot retrieve contributors at this time
executable file 95 lines (60 sloc) 2.52 KB
#!/usr/bin/env perl
# linode-cli
# Copyright (C) 2015 Linode, LLC
use 5.010;
use strict;
use warnings;
use FindBin;
use lib "$FindBin::RealBin/lib";
use Getopt::Long (qw(:config pass_through));
use Linode::CLI::Util ':basic';
my $object;
if ( defined( $ARGV[0] ) && ( my @found = grep { $_ eq lc( $ARGV[0] ) } @MODES ) ) {
$object = shift;
elsif ( defined( $ARGV[0] ) && $ARGV[0] =~ 'help' ) {
else {
GetOptions( 'o|object=s' => \$object ) or die "Unable to parse options\n";
$object = 'linode'
unless ( defined($object) && ( my @found = grep { $_ eq $object } @MODES ) );
exec( $FindBin::RealBin . "/linode-$object", @ARGV );
=head1 NAME
linode - command-line interface to the Linode platform
B<linode> [B<--object> object] [object-options...]
This is a wrapper utility to the suite of Linode command line tools.
=head2 Objects
The following command line tools are available, and can be called directly or
with B<linode object>, e.g.: B<linode domain list>. Each has its own help
documentation accessible with B<--help>; for instance: B<linode -o domain
If no object is specified, B<-o linode> is implied.
=item S<-o account, --object account account information>
=item S<-o domain, --object domain domains and DNS records>
=item S<-o linode, --object linode Linode instances>
=item S<-o nodebalancer, --object nodebalancer NodeBalancer configs and nodes>
=item S<-o stackscript, --object stackscript available StackScripts>
Copyright 2015 Linode, LLC. Linode CLI is made available under the terms
of the Perl Artistic License, or GPLv2 at the recipients discretion.
=head2 Perl Artistic License
Read it at L<>.
=head2 GNU General Public License (GPL) Version 2
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
See the full license at L<>.