Skip to main content

CLI Commands

version

The version command displays the current version of the Cogni+ CLI and can check for updates.

Usage

cogni version [OPTIONS]

Description

The version command shows the currently installed version of the Cogni+ CLI. With the --check flag, it also checks if a newer version is available and provides instructions for updating. This command is useful to:
  • Verify which version you’re currently running
  • Check if you have the latest features and bug fixes
  • Determine if you need to update

Options

OptionDescription
--checkCheck for updates to the Cogni+ CLI
--helpShow help message for the version command

Examples

# Show the current version
cogni version

# Check if updates are available
cogni version --check

Output

When displaying only the current version:
Cogni+ CLI v1.2.3
When checking for updates:
Cogni+ CLI v1.2.3
Checking for updates...
A new version is available: v1.3.0
Run 'cogni update' to install the latest version.
Or if you’re already running the latest version:
Cogni+ CLI v1.3.0
Checking for updates...
You are running the latest version.

Tips

  • Use this command to verify that your installation was successful
  • Include the version number when reporting issues or seeking support
  • Regularly run with the --check flag to stay up to date with the latest features