Releases: hyperonecom/h1-cli
v1.1.0
Version 1.1.0 is out
We are releasing a new version of the CLI, which introduces new functionality, which - we hope - will allow enhance efficiency while managing DNS zones. At the same time we have fixed some bugs and made numerous improvements to the documentation.
DNS management enhancements
New command related to DNS was added dns zone import
. It allows dns zone imports using common zone file format to describe imported records.
As a result, we also changed the format that is used when exporting DNS records via dns zone export
. Now it uses zone file as well. On this occasion, we also changed the name of one of parameter of dns zone export
. We changed parameter name from --zone-name
to zone
to be inline with all others commands.
Details available at h1 dns zone import --help
, h1 dns zone export --help
and online documentation.
Output formats added
We added new output formats.
One of the formats is the popular format "YAML", which allows you to inspet the details of the resource - for some - in a more readable way than JSON. You can use it on any command, just add: ---output yaml
The second introduced format is a shortcut for frequently demanded functionality. It returns only the resource identifier. Perfect for use in scripts. You can use it on any command, just add: --output id
Vaults extended
Vault support in CLI has been extended in two areas:
- provides commands to start and stop Vault. They are available as
h1 vault start
andh1 vault stop
respectively. - enabling the optional selection of a snapshot from which the new Vault will be created via new parameter
--snapshot
for commandh1 vault create
Manage notifications added
We added commands to manage notifications of project, so you don't have to use panel to adjust them. For details, try h1 project notification credits --help
.
Detect disk size for you
While creating of a new disk by importing a .vhdx file, there is no longer need to specify its size. We will read the required information from the .vhdx file and we will select an optimal size for it.
New functions for networking of Virtual Machines
The following new command have been made available:
h1 vm nic ip persistent
which allows you to make ephemeral IP address into persistenth1 vm nic ip replace
which allows to replace IP address even if flavour doesn't allow more IP address
We believe that they will improve everyday use by administrators.
Bug Fixes
The following noticeable bugs have been fixed:
- user creation via CLI is working properly now
- creation of an ISO by importing local .iso file works now as well
v1.0.0
Version 1 is out
We are releasing a new version of the CLI, which introduces an overall unification and breaking changes, which - we hope - will allow perform in efficient & no fuss way even the most advanced actions.
Breaking Changes
In the first place, pay attention to the removal of any positional arguments. In most cases, an option with a name identical to the resource is available instead. Options can also be renamed or transformed.
Documentation with examples should help during the upgrade. The documentation has been published online and is available under the --help
option.
Tenant is now Project
Another important change that currently is based on naming change is rename tenant to project. Currently, this is only a name change, but we have idea to develop around this in the future.
Project Tokens
We provide tokens that allow you to delegate permissions to perform specific actions on specific resources of project. We now also automatically perform actions on a regular basis through the CLI for all resources to ensure that such automation will work properly. Details available at h1 project token --help
and online documentation of h1 project token.
Two-Factor Authentication
We share and we recommend using two-factor authentication for everybody. Once enabled for user, it will be required both in the panel as well as in the CLI. For details, try h1 user 2fa enable --help
.
v0.4.0
Virtual Machine (new commands)
Live Virtual Machine metrics
h1 vm metrics <name | id>
$ h1 vm metrics debian
2018-04-24T10:10:34.266Z
vm
Name PercentGuestRunTime PercentHypervisorRunTime PercentRemoteRunTime
ubuntu 0 0 0
netadp
Name BytesReceivedPersec BytesSentPersec PacketsReceivedPersec PacketsSentPersec
00155DFF09F1 0 0 0 0
disk
Name ReadBytesPersec WriteBytesPersec ReadOperationsPerSec WriteOperationsPerSec ErrorCount QueueLength
ubuntu-os 0 0 0 0 0 0
IP for Network Adapter
h1 vm nic ip list --vm-id ubuntu --nic-id 5adf0b6b99d4732a0caa83d9
h1 vm nic ip add --vm-id ubuntu --nic-id 5adf0b6b99d4732a0caa83d9 62.181.9.26
h1 vm nic ip delete --vm-id ubuntu --nic-id 5adf0b6b99d4732a0caa83d9 62.181.9.26
Build (new executable)
New build for Linux Alpine from this release as a binary executable, to be mainly used in containers to support automation.
v0.3.0
Disk (new commands)
Import
Create new disk resource from local source .vhdx file, which will be imported as a new disk.
Local .vhdx disk file needs to fulfil following requirements:
- VhdFormat - VHDX
- VhdType - Dynamic
Required parameters:
- name - just a name for a new disk
- type - disk type for the new disk
- size - disk size equal or greater than size given in local .vhdx file
h1 disk create --name ubuntu --type volume --size 100 --source ubuntu.vhdx
Download / Export
Download existing disk in .vhdx format. To ensure disk data consistency remember to download disk is not mounted in OS, disk is Unattached or vm is Off.
h1 disk download ubuntu --destination out.vhdx
ISO (new command)
Import
Create new iso resource from local source .iso file
h1 iso create --name test-4 --source alpine.iso
Image (new command)
List disks
List all disks which are part of an image
h1 image disk ubuntu
v0.2.0
Description of the release
v0.1.0
Description of the release
v0.0.7
Description of the release