CLI Commands
doctor
Thedoctor command runs diagnostics and can automatically fix issues with your Cogni+ CLI installation.
Usage
Description
Thedoctor command performs a series of checks on your Cogni+ CLI installation and environment to identify any potential issues. It verifies things like:
- Configuration file integrity
- Authentication status
- Network connectivity
- Required dependencies
- File permissions
- Docker configuration (if applicable)
Options
| Option | Description |
|---|---|
--fix | Automatically try to fix identified issues |
--verbose | Show detailed information for all checks |
--json | Output results in JSON format |
--help | Show help message for the doctor command |
Examples
Output
The command displays each check it performs with a status indicator:--fix flag, it attempts to resolve issues:
Related Commands
cogni init- Reconfigure Cogni+ CLI settingscogni update- Update Cogni+ CLI to the latest version
Tips
- Run this command if you encounter unexpected errors with other commands
- Use it after updating to ensure everything is working correctly
- The
--verboseflag is useful for troubleshooting difficult issues - Include the JSON output when seeking support from the Cogni+ team