mercur-cli

Automate Mercur project setup and block management via CLI commands.

1.7k|421|Updated Apr 23, 2024
One-click install
npx skills add https://github.com/mercurjs/mercur --skill mercur-cli-mercurjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mercur-cli
Source: https://github.com/mercurjs/mercur/tree/main/.claude/skills/mercur-cli
Command: npx skills add https://github.com/mercurjs/mercur --skill mercur-cli-mercurjs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of creating, initializing, searching, viewing, adding, and comparing Mercur project components, reducing manual command execution and potential errors.

Core Features & Use Cases

  • Project Creation: Set up new Mercur projects from templates effortlessly.
  • Configuration Initialization: Create or update blocks.json in existing projects.
  • Block Discovery: Search for and inspect available blocks before installation.
  • Block Management: Add new blocks and compare local versions with registry to ensure up-to-dateness.
  • Use Case: Developers can quickly initialize project environments and manage blocks through simple CLI commands, enhancing productivity and consistency.

Quick Start

Use the Mercur CLI to create a new project with a basic template and explore available blocks quickly.

Frequently Asked Questions about mercur-cli

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

FAQPage Schema
How do I automate Mercur project setup and block management?

You can automate Mercur project setup by executing CLI commands to create new projects, initialize configuration, search for available blocks, and add or diff project components efficiently.

How do I initialize blocks.json configuration for an existing Mercur project?

To initialize blocks.json configuration, use the Mercur CLI to create or update the blocks.json file in your existing project directory, ensuring your project configuration remains consistent.

Do I need Node.js to run Mercur CLI commands for project components?

Yes, you need Node.js and the @mercurjs/cli package installed to run CLI commands smoothly and execute project creation, block discovery, and component diffing tasks.

What is the best way to compare local block versions with the Mercur registry?

The best way to compare local block versions is using the Mercur CLI diff command, which checks your local project components against the registry to ensure up-to-dateness and integration consistency.

Can I search for and inspect available Mercur blocks before adding them to my project?

Yes, you can use the Mercur CLI to search for available blocks and inspect their details before installation, allowing you to discover and evaluate project components before adding them.

Why does Mercur CLI block management reduce manual command execution errors?

Mercur CLI block management reduces manual execution errors by automating the creation, initialization, and addition of project components through standardized CLI commands, replacing repetitive manual configuration.