- Run
gohomecli config site list
, on first run it will auto-create configuration file, without setting API key - Set api key: edit
~/.config/home-cli/config.toml
. API Key retrieved fromhttps://home.weka.io/api-keys
or similar URL from different deployment
homecli config site add <site> <cloud-url> <api-key>
For example, to add new localhost deployment:
homecli config site add localhost http://localhost:8000 API_KEY_FOR_LOCALHOST
gohomecli config default-site localhost
(localhost
is a name used duringsite add
)
Config file can be edited directly, it should look like:
default_site = "prod"
[sites]
[sites.prod]
api_key = "key1"
cloud_url = "https://api.home.weka.io/"
[sites.another]
api_key = "key"
cloud_url = "https://api.another.deployment"
[sites.local]
api_key = "key3"
cloud_url = "http://localhost:8000"
Every command has --site
flag to point to specific site, using name that was added during create