How 1gmedia/ghlcli works
ghlcli is primarily an agent-friendly GoHighLevel CLI with a Python SDK, official public-API access, endpoint discovery, and a guarded experimental Firebase/internal workflow lane. Users invoke CRM commands or SDK methods to read and manage GHL resources; workflow-builder scripts additionally turn campaign definitions into draft workflows. The README also documents endpoint coverage, REPL, and agent-skill usage. The graph follows shown imports, calls, and README statements; unsampled command details are represented only at subsystem level.
Main entry points: cli_extensions.py Foundation commands · gohighlevel_cli.py GHL command CLI · ghl_internal_client.py Internal API client · ghl_client.py Public API client
Components 22
User interfaces
- GHL command CLI
cli_anything/gohighlevel/gohighlevel_cli.py - Foundation commands
cli_anything/gohighlevel/cli_extensions.py - Interactive REPL
cli_anything/gohighlevel/utils/repl_skin.py - Python SDK
cli_anything/gohighlevel/sdk/client.py - Agent skill package
skills
Public API lane
- Public API client
cli_anything/gohighlevel/utils/ghl_client.py - PIT authentication
cli_anything/gohighlevel/auth/pit.py - GoHighLevel public API
Internal workflow lane
- Internal API client
cli_anything/gohighlevel/utils/ghl_internal_client.py - Firebase token manager
cli_anything/gohighlevel/utils/ghl_internal_client.py - Google Secure Token API
- Workflow builder
cli_anything/gohighlevel/utils/workflow_builder.py - Campaign builders
builders - Email sequence parser
builders/_email_sequences_parser.py - GoHighLevel internal API
Discovery and setup
- Artist provisioning
cli_anything/gohighlevel/artist_provisioning.py - Endpoint catalog
cli_anything/gohighlevel/endpoints.py - MCP inventory
cli_anything/gohighlevel/mcp_inventory.py - Coverage reporting
cli_anything/gohighlevel/coverage.py - Command registry
cli_anything/gohighlevel/registry.py - QA stress harness
cli_anything/gohighlevel/qa_stress.py
Other components
- CLI / SDK user
Connections 26
- CLI / SDK user → GHL command CLI: runs commands
README.md - CLI / SDK user → Python SDK: calls SDK
README.md - GHL command CLI → Foundation commands: registers commands
cli_anything/gohighlevel/gohighlevel_cli.py - GHL command CLI → Public API client: calls API
cli_anything/gohighlevel/gohighlevel_cli.py - GHL command CLI → Interactive REPL: launches REPL
cli_anything/gohighlevel/gohighlevel_cli.py - GHL command CLI → Internal API client: calls internal API
cli_anything/gohighlevel/gohighlevel_cli.py - GHL command CLI → Workflow builder: builds workflows
cli_anything/gohighlevel/gohighlevel_cli.py - Foundation commands → Coverage reporting: registers coverage
cli_anything/gohighlevel/cli_extensions.py - Foundation commands → Artist provisioning: runs setup
cli_anything/gohighlevel/cli_extensions.py - Foundation commands → Internal API client: routes requests
cli_anything/gohighlevel/cli_extensions.py - Foundation commands → Public API client: routes requests
cli_anything/gohighlevel/cli_extensions.py - Python SDK → PIT authentication: uses credentials
cli_anything/gohighlevel/sdk/client.py - Python SDK → GoHighLevel public API: sends API requests
README.md - Public API client → PIT authentication: builds auth headers
cli_anything/gohighlevel/auth/pit.py - Public API client → GoHighLevel public API: sends API requests
cli_anything/gohighlevel/utils/ghl_client.py - Workflow builder → Internal API client: creates workflow steps
cli_anything/gohighlevel/utils/workflow_builder.py - Internal API client → Firebase token manager: gets ID token
cli_anything/gohighlevel/utils/ghl_internal_client.py - Firebase token manager → Google Secure Token API: refreshes token
cli_anything/gohighlevel/utils/ghl_internal_client.py - Internal API client → GoHighLevel internal API: sends internal requests
README.md - Campaign builders → Workflow builder: uses builder
builders/consulti-nurture-builder.py - Campaign builders → Email sequence parser: parses sequences
builders/wf1-course-interest-builder.py - Coverage reporting → Endpoint catalog: compares endpoints
cli_anything/gohighlevel/coverage.py - Coverage reporting → MCP inventory: compares tools
cli_anything/gohighlevel/coverage.py - Foundation commands → Command registry: uses command registry
cli_anything/gohighlevel/cli_extensions.py - Foundation commands → QA stress harness: registers QA
cli_anything/gohighlevel/cli_extensions.py - CLI / SDK user → Agent skill package: uses agent skill
README.md