hlambda-cli - CLI tool for managing hlambda server.
$ npm install -g hlambda-cliFirst you will need to get hlambda server running, either in docker or locally.
$ hlambda --version$ hlambda init my-first-hlambda-app$ cd my-first-hlambda-appChange the admin_secret in the config.yaml manually or just run
$ hlambda config save --admin-secret "demo"this will edit the config.yaml file and save admin secret value in that file (please take extra care when commiting config.yaml file to not leak secrets)
You can then export the existing metadata from the running server use
$ hlambda metadata exportor you can apply the changes by running
$ hlambda metadata applyor run the hlambda metadata apply with option --admin-secret <your_secret> which is a prefered option to do this action instead of saving secret it in config.yaml
$ hlambda metadata apply --admin-secret <your_secret>to export existing data from the hlambda server run
$ hlambda metadata export --admin-secret <your_secret>By default metadata apply should also automatically reload the metadata on the server unless --no-auto-reload option is set
$ hlambda metadata apply --no-auto-reloadto do it manually you can run:
$ hlambda metadata reloadIf you want to clear all the metadata from the server
$ hlambda metadata clear