Skip to content

v1.10.0

Latest
Compare
Choose a tag to compare
@fredericosilva fredericosilva released this 18 Mar 14:27
· 8 commits to master since this release

A new CLI release has been introduced. It enables more efficient management of the Platform. New actions have been made available as part of the Website service. Updates have been made easier on the Linux platform.

Command auto-complete

Command autocomplete mechanisms have been introduced to allow more efficient use of less popular commands, parameters and values ​​when managing platform from an interactive console. It allows to type in the command of the Linux text console (bash, zsh, fish) or WSL under Windows to get a hint what the CLI capabilities are. At the user's request, the mechanism will give hint - complete the command if it is able to unambiguously propose to complete the command or present possible variants.

In order to use the mechanism, the console mechanisms must be activated once using the command:

config autocomplete init

After restarting the console, just tap tab twice when entering the command to get autocomplete. Several complement situations are outlined below:

$ h1 dns zone list -<TAB>
--dry-run --no-wait --output --project-select --query --verbose
$ h1 vm create --type a1.n <TAB> # completes the variant name
$ h1 vm create --type a <TAB> # completes the common part of variant names, e.g. "a1."
$ h1 vm create --type a1. <TAB> # indicates the available variants
a1.large a1.medium a1.micro a1.nano a1.small

We are waiting for comments on the effectiveness of those hints.

Management of Website

As part of the Website service development, two mechanisms have recently been made available:

  • the ability to manage environment variables
  • the ability to update runtime image

The following commands have been added to take advantage of the new possibilities:

  • website env - Manage environment variables of Website
    • website env create - Create environment variables of Website
    • website env show - Show environment variables of Website
    • website env list - List environment variables of Website
    • website env delete - Delete environment variables of Website
  • website image - Update image of Website

For details, try website env --help or website image --help.

Managing environment variables through CLI can be part of a continuous integration process. It is much easier to modify the environment variable using the platform CLI than to edit the configuration files of the application running in the service.

The solution will also be used during simple, daily administration by users who are familiar with console and prefer to manage services that way. This applies in particular to the situation when it is necessary to update the number of Website and efficiently verify the correctness of their work.

Facilitating installation on the Linux

For CLI, it's supported to run on a number of operating systems - Linux, macOS, Microsoft Windows and Alpine. It is also available as part of the SSH console for the Website service and in Virtual Machines created using Recommended Images with Linux.

However, we recognise the expectations of Linux administrators who prefer installations using a package repository. That is why we have provided repositories for popular Linux distributions:

  • Debian & Ubuntu - via the Apt repository
  • Fedora & CentOS & RedHat - through the Yum repository
  • Alpine - through the Apk repository

The updated installation procedure is available at HyperOne.com.

The new form of installation does not mean the loss of earlier mechanisms. The basic possibility of independent installation on the operating system chosen by the user is still preserved. In many cases, using repositories makes updates easy.