fbpixel

CLI

HakunaCloud is managed using a command line tool

Installation

  1. Install the NodeJS runtime
  2. Run npm install -g @hakuna.cloud/cli

Working with the JSON output

All the cli commands returns a json formatted output. For some commands, like hakuna ps or volume ls, the json output is generated passing the optional parameter --json. This output can be easly managed using jq, a lightweight and flexible command-line JSON processor.

Get a container by its name

Get only a container with name some-name

1
hakuna ps --json | jq -c '.[] | select(.name == "some-name")'