Because obdiag needs the ability to adapt quickly internally, it needs to support online upgrades to reduce dependence on releases and achieve rapid updates and real-time iteration capabilities. Due to the design capabilities of obdiag, some functions can achieve decoupling of execution and execution logic, thus introducing the ability to online upgrade. Online upgrade of plug-in data is only suitable for plug-in files based on ~/.obdiag
update command group overview
obdiag update
obdiag update --file=<file_name>
````file_name` is the plug-in file path for offline manual update. If not specified, the online upgrade process will be used.
When using `--file` to specify the corresponding path, the user needs to ensure the suitability of the file.
## update command upgrade process
1. Migrate the original plug-in folder (taking the `~/.obdiag/check` folder as an example) to {original folder name}.d( `~/.obdiag/check.d` )
2. Unzip the latest plug-in file to `~/.obdiag/`
## Note
1. Early inspection (check) related files are located under `~/.obdiag/`, such as `~/.obdiag/tasks`. You need to decide whether to delete it yourself