NoCloud CLI
Official CLI for NoCloud Platform
Table of Contents
Usage
Check out nocloud -h
for list of available commands.
You can also use nocloud help [command]
to see help notes for particular command.
You must authorize first, to use other commands, see nocloud help login
.
Installation
Download Pre-Built
- Navigate to Releases pages
- Pick CLI Release Tag matching NoCloud version you running
- Download archived binary and checksum for you platform
- Unpack archive:
tar -xvzf nocloud-<version>-<os>-<arch>.tar.gz
- Move
nocloud
binary file to /usr/local/bin
- You're all set!
macOS users might'd need to allow it in Privacy Settings
Building from Source
You must have golang (version 1.17
) environment set
- Clone this repo
- Run
go build -o nocloud
- Put freshly built
nocloud
binary file to /usr/local/bin
- You're all set!
macOS users might'd need to allow it in Privacy Settings
Update
Automatic update
If you have CLI version ^0.1.1
installed, you can update using following command:
nocloud install cli # This will install CLI from latest tag on GitHub
# or
nocloud install cli v0.1.2 # This will install CLI from precisely v0.1.2 tag on GitHub
Manual update
Simple repeat steps from Installation
Notes
Login
CLI currently supports only standard
type of Authorization
Auto-Completion
CLI is based on spf13/cobra and supports auto-completion,
you can see register scripts by running nocloud completion [your shell]
To check how to register completions, add -h
flag