CLI Commands
update
Theupdate command updates the Cogni+ CLI to the latest version.
Usage
Description
Theupdate command checks for updates to the Cogni+ CLI and installs the latest version if available. It preserves your configuration during the update process, ensuring a seamless transition to the new version.
This command helps you stay up to date with the latest features, improvements, and bug fixes.
Options
| Option | Description |
|---|---|
--force | Force update even if already at the latest version |
--help | Show help message for the update command |
Update Process
- The command checks the currently installed version
- It queries the Cogni+ server for the latest available version
- If a newer version is available, it downloads the installer
- The installer replaces the CLI executable while preserving configuration
- The command verifies the new installation is successful
Examples
Output
When an update is available:Related Commands
cogni version- Display the current version and check for updates
Tips
- Run this command regularly to ensure you have the latest features and bug fixes
- Configuration settings are preserved during updates
- The update process requires an internet connection
- You may need administrative privileges depending on your installation location