-
Notifications
You must be signed in to change notification settings - Fork 140
Installation
pip3 install linode-cli
# for upgrading
pip3 install linode-cli --upgrade
docker run --rm -it -e LINODE_CLI_TOKEN=$LINODE_TOKEN linode/cli:latest linodes list
docker run --rm -it -v $HOME/.config/linode-cli:/home/cli/.config/linode-cli linode/cli:latest linodes list
Setup Linode CLI GitHub Action to automatically install and authenticate the cli in a GitHub Actions environment:
- name: Install the Linode CLI
uses: linode/action-linode-cli@v1
with:
token: ${{ secrets.LINODE_TOKEN }}
The Linode CLI is available through unofficial channels thanks to our awesome community! These distributions are not included in release testing.
brew install linode-cli
brew upgrade linode-cli
In order to successfully build the CLI, your system will require the following:
- The
make
command python3
-
pip3
(to install project dependencies)
Before attempting a build, install python dependencies like this::
make requirements
Once everything is set up, you can initiate a build like so::
make build
If desired, you may pass in SPEC=/path/to/openapi-spec
when running build
or install
. This can be a URL or a path to a local spec, and that spec will
be used when generating the CLI. A yaml or json file is accepted.
To install the package as part of the build process, use this command::
make install