cli

Guide contributors in extending the LobeHub CLI with commands, options, tests, and documentation.

1|Updated May 20, 2026
One-click install
npx skills add https://github.com/mDevsLabs/mAI --skill cli-mdevslabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli
Source: https://github.com/mDevsLabs/mAI/tree/main/.agents/skills/cli
Command: npx skills add https://github.com/mDevsLabs/mAI --skill cli-mdevslabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a centralized guide for building, extending, and maintaining the LobeHub CLI, including architecture, command patterns, and contribution workflows.

Core Features & Use Cases

  • Modular command structure with a single entrypoint and per-command implementations, enabling consistent growth.
  • Clear development guidelines for adding new commands, options, tests, and documentation to the CLI.
  • Comprehensive reference for authentication, configuration, deployment, and runtime behavior across commands such as agent, generate, kb, memory, topic, and skill.

Quick Start

Create a new command file under apps/cli/src/commands, wire it into the CLI entry point, and run the dev script to validate integration.

Frequently Asked Questions about cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new command to the LobeHub CLI?

To add a command, create a new file under apps/cli/src/commands, wire it into the single CLI entry point, and run the dev script to validate the integration. This modular structure ensures consistent behavior across the CLI.

What conventions should I follow for CLI command documentation?

CLI command documentation must enforce frontmatter metadata containing name and description fields. This standardizes the reference for architecture, contribution workflows, and usage patterns across all implemented commands.

Does the LobeHub CLI use a modular or monolithic architecture?

The LobeHub CLI uses a modular command structure with a single entrypoint and per-command implementations. This architecture enables consistent growth when adding new commands, options, and tests.

What CLI commands are available for authentication and deployment?

The CLI provides comprehensive references for authentication, configuration, and deployment across commands including agent, generate, kb, memory, topic, and skill to manage runtime behavior.

How do I write tests for a new command-line interface option?

You should follow the clear development guidelines provided for adding new commands, options, and tests to the CLI. These conventions ensure consistent quality and behavior across the command-line interface.

Why do I need frontmatter metadata in my CLI command files?

Frontmatter metadata containing name and description is enforced to maintain standardized development guidance. It documents the architecture, contribution workflows, and usage patterns for every CLI command.