Skip to content

[CRITICAL] Daemon Commands Removed from CLI #654

@sujay-d07

Description

@sujay-d07

What happened?

All daemon-related CLI commands have been removed from cortex/cli.py, making it impossible to interact with the cortexd daemon through the CLI. The daemon client implementation (cortex/daemon_client.py) exists and is functional, but there are no CLI entry points to access these features.

How to reproduce

  1. Install Cortex (if not already installed)
  2. Try to run any daemon command:
    cortex daemon ping
  3. Observe the error

Additional Test Cases

# All of these will fail with the same error:
cortex daemon version
cortex daemon config
cortex daemon reload-config
cortex daemon shutdown
cortex daemon install
cortex daemon uninstall
cortex daemon run-tests
cortex daemon --help

Expected Behavior

The CLI should accept cortex daemon as a command group with subcommands that:

  1. Parse the daemon subcommand (ping, version, config, etc.)
  2. Instantiate a DaemonClient from cortex/daemon_client.py
  3. Call the appropriate method
  4. Display the results to the user

Environment

  • OS: Ubuntu 24.04
  • Python: 3.12

Error output

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions