hakuna CLI outputs are formatted as JSON, that can be manipulated with tools like jq.

Usage

hakuna <command> <subcommand> [<subcommand> ...] [parameters]

Each command has it own help: hakuna <command> -h

Options:
  -V, --version   output the version number
  -p, --pretty    pretty-print the output
  -h, --help      output usage information

Commands:
  vhost <cmd>     works on vhost
  provider <cmd>  works on providers
  user <cmd>      Register User signup and login
  help [cmd]      display help for [cmd]

hakuna user

Options:
  -h, --help  output usage information

Commands:
  login       Login in Hakuna Cloud and generate credentials for the cli

This command is used to login.

hakuna provider

Options:
  -h, --help  output usage information

Commands:
  list        List all the existing provider
  create      Create a new provider

This command is used to manage Cloud Providers within Hakuna.

hakuna vhost

Options:
  -h, --help        output usage information

Commands:
  list              List all the existing VHost
  create            Configure new VHost from a running instance for an already configured provider
  stop [options]    Stop a VHost.
  update [options]  Update an existing VHost using a json dotted notation
  delete [options]  Deregister an existing VHost

This command is used to manage VHosts within Hakuna.

List all configured hostnames

hakuna vhost list | jq -c ' .[] | .hostname'

All VHosts are univocally identified by the field hostname. The command above lists, for each existing VHost, only the field hostname

Find a VHost given an hostname

hakuna vhost list | jq '.[] | select(.hostname == "npm.my-ideas.it") '

Return only the VHost that match the given select expression.

hakuna alias

Options:
  -h, --help        output usage information

Commands:
  list              List all the existing Alias
  create            Create a new Alias
  delete [options]  Delete an existing Alias
  update [options]  Update an existing Alias using a json dotted notation

hakuna hostname

Options:
  -h, --help  output usage information

Commands:
  create      Create a custom .dev.hakuna.cloud hostname

This command is used to configure a CNAME DNS record that points to one of our load balancers. This enables an easy configuration of Hakuna, but it limits the user to adopt a *.dev.hakuna.cloud hostname for the VHost management.

Output

The CLI outputs is always formatted in JSON. In order to have the best user experience with the CLI, we suggest to install jq, a command-line JSON processor available for Windows, OSX and Linux