Skip to content

Commit

Permalink
added: self update (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mochamad Noor Syamsu authored Mar 11, 2022
1 parent 9d2ecd2 commit f1f198a
Show file tree
Hide file tree
Showing 6 changed files with 615 additions and 350 deletions.
10 changes: 10 additions & 0 deletions docs/src/pages/guides/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ For example, assuming you have a file named `only-notif.yml` whose content `{"no
monika -c foo-monitoring.yml only-notif.yml
```

## Auto-update

Monika supports automatic update with `--auto-update major|minor|patch`. Where `major|minor|patch` refers to [semantic versioning (semver) specification](https://semver.org/). By default, the updater will check for a new Monika version every 24 hours.

```bash
monika --auto-update patch
```

**Note that** auto-update will make Monika terminate itself after succesful update. To automatically restart Monika when terminated, you need to run Monika with a process manager applications, e.g., monit, pm2, nodemon.

## Create Config

Just starting out? Want to make a new configuration? The `--create-config` flag will spin up an easy Web based configuration file generator.
Expand Down
Loading

0 comments on commit f1f198a

Please sign in to comment.