mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-02 18:17:28 -05:00
40 lines
816 B
Markdown
40 lines
816 B
Markdown
# Monitor CLI
|
|
|
|
Monitor CLI is a tool to sync monitor resources and execute file defined procedures.
|
|
|
|
## Install
|
|
|
|
```sh
|
|
cargo install monitor_cli
|
|
```
|
|
|
|
## Usage
|
|
|
|
Configure a file `~/.config/monitor/creds.toml` file with contents:
|
|
```toml
|
|
url = "https://your.monitor.address"
|
|
key = "YOUR-API-KEY"
|
|
secret = "YOUR-API-SECRET"
|
|
```
|
|
|
|
Note. You can specify a different creds file by using `--creds ./other/path.toml`.
|
|
|
|
With your creds in place, you can run syncs:
|
|
|
|
```sh
|
|
## Sync resources in a single file
|
|
monitor sync ./resources/deployments.toml
|
|
|
|
## Sync resources gathered across multiple files in a directory
|
|
monitor sync ./resources
|
|
|
|
## Path defaults to './resources', in this case you can just use:
|
|
monitor sync
|
|
```
|
|
|
|
And executions:
|
|
|
|
```sh
|
|
## Execute a TOML defined procedure
|
|
monitor exec ./execution/execution.toml
|
|
``` |