Skip to content

API Reference parrot.cli

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.cli

View source

Top-level CLI entrypoint for Parrot utilities.

Subcommands are lazy-imported so that 'parrot setup' and 'parrot conf init' work on a fresh checkout without navconfig's env/ directory.

This package also provides the interactive agent REPL subpackage:

  • parrot.cli.agent_repl — parrot agent Click command
  • parrot.cli.renderer — Rich-based response renderer
  • parrot.cli.repl — AgentREPL engine
  • parrot.cli.loaders — StandaloneAgentLoader, ServerAgentProxy
  • parrot.cli.commands — SlashCommandDispatcher

Class LazyGroup

Click group that imports subcommands on first invocation.

Parameter Type Default Description
*args () Positional arguments forwarded to click.Group.
**kwargs {} Keyword arguments forwarded to click.Group.

Method LazyGroup.list_commands

Return sorted list of registered subcommand names.

list_commands(ctx)

Parameter Type Default Description
ctx Click context.

Method LazyGroup.get_command

Lazily import and return a subcommand by name.

get_command(ctx, cmd_name)

Parameter Type Default Description
ctx Click context.
cmd_name Name of the subcommand to load.

Method LazyGroup.shell_complete

Complete subcommand names without failing on an uninstalled one.

Click's default resolves every matching command through :meth:get_command, so one absent optional distribution would abort parrot <TAB>. Such a command is still offered, marked unavailable.

shell_complete(ctx, incomplete)

Parameter Type Default Description
ctx Click context.
incomplete The partial word being completed.

Method LazyGroup.format_commands

List subcommands in --help without failing on an uninstalled one.

Click resolves every listed command to render its short help. A lazy command whose optional distribution is absent (e2e, serve, … in the managed runtime) makes :meth:get_command raise, which used to turn a plain parrot --help into exit 1. Here such a command is listed with its availability message instead; invoking it directly still fails with that same message.

format_commands(ctx, formatter)

Parameter Type Default Description
ctx Click context.
formatter Click help formatter to write the commands section to.

Function cli

Parrot command-line interface.

cli()

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally