A Command line tool for managing apps and devices in a drogue cloud instance.
Install via crates.io :
cargo install drg
Or build from source :
cargo build --release
cargo install --path <path/to/destination>
In order to use drg to manage resources in drogue cloud you first need to authenticate :
drg login https://drogue-cloud-registry-endpoint
Then follow the steps to authenticate. drg will generate a config file to save your configuration.
drg interacts with resources existing in drogue-cloud, currently apps and devices operations are supported.
The following operations are handled :
* create
* delete
* edit
* get
```
drg create app
drg create app {"foo":"bar"}
drg edit app
drg delete app
```
drg create device
drg create device {"foo":"bar"}
drg edit device
drg delete device
drg will load cluster settings from a configuration file. The DRGCFG environment variable can point to a config file location.
The default config file location is $HOME/.config/drg_config.json. This default value will be used if the environment variable is not set.
This location can be overriden with the --config argument :
drg --config path/to/config create device <deviceId> --app <appId>
To get a working config file, run see login to a drogue cloud instance
In no particular order here are the following things that we would like to add to drg :
* List resources
* Trust anchors support
* Json patch operations
* Other platforms binaries : MacOS and windows.