Module: Ace::Support::Models::CLI

Extended by:
Cli::RegistryDsl
Defined in:
lib/ace/support/models/cli.rb,
lib/ace/support/models/cli/commands/info.rb,
lib/ace/support/models/cli/commands/search.rb,
lib/ace/support/models/cli/commands/cache/diff.rb,
lib/ace/support/models/cli/commands/cache/sync.rb,
lib/ace/support/models/cli/commands/cache/clear.rb,
lib/ace/support/models/cli/commands/models/cost.rb,
lib/ace/support/models/cli/commands/models/info.rb,
lib/ace/support/models/cli/commands/cache/status.rb,
lib/ace/support/models/cli/commands/models/search.rb,
lib/ace/support/models/cli/commands/sync_shortcut.rb,
lib/ace/support/models/cli/commands/providers/list.rb,
lib/ace/support/models/cli/commands/providers/show.rb,
lib/ace/support/models/cli/commands/providers/sync.rb

Overview

CLI for ace-models using ace-support-cli.

After the split, ace-models handles cache and model operations. Provider management moved to ace-llm-providers.

Defined Under Namespace

Modules: Commands

Constant Summary collapse

PROGRAM_NAME =
"ace-models"
REGISTERED_COMMANDS =

Application commands with descriptions (for help output)

[
  ["search", "Search for models by name or pattern"],
  ["info", "Show detailed model information"],
  ["cost", "Calculate token cost for a model"],
  ["sync", "Sync model cache from models.dev"],
  ["status", "Show cache sync status"],
  ["diff", "Show changes since last sync"],
  ["clear", "Clear the model cache"]
].freeze
HELP_EXAMPLES =
[
  "ace-models search claude              # Find models by name",
  "ace-models info claude-sonnet-4-6     # Pricing and context window",
  "ace-models cost claude-opus-4-6       # Token cost calculator",
  "ace-models sync                       # Update from models.dev"
].freeze

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Integer

Entry point for CLI invocation (used by tests and exe/)

Parameters:

  • args (Array<String>)

    Command-line arguments

Returns:

  • (Integer)

    Exit code (0 for success, non-zero for errors)



78
79
80
# File 'lib/ace/support/models/cli.rb', line 78

def self.start(args)
  Ace::Support::Cli::Runner.new(self).call(args: args)
end