CLI-client¶
Warning
This is only a first quick-and-dirty PoC.
Preparation¶
-
Switch into the go-SDK directory
-
Build the protobuf-message for go
-
Replace the package-name within the created protobuf-message
-
Switch into the directory of the client
-
Build
hanamictl
-binary: -
load environment-variables
Info
Port
11418
is the default-port of Hanami.
Usage example¶
-
Help-output
-
Create-command
./hanamictl user create --name "CLI User" cli_user Enter Password: Enter Password again: +------------+----------+ | NAME | CLI User | +------------+----------+ | PROJECTS | [] | +------------+----------+ | CREATOR_ID | asdf | +------------+----------+ | ID | cli_user | +------------+----------+ | IS_ADMIN | false | +------------+----------+
-
List-command
./hanamictl user list +----------+----------+------------+----------+----------+ | ID | NAME | CREATOR ID | PROJECTS | IS ADMIN | +----------+----------+------------+----------+----------+ | asdf | asdf | MISAKI | [] | true | +----------+----------+------------+----------+----------+ | cli_user | CLI User | asdf | [] | false | +----------+----------+------------+----------+----------+