cli

Scaffold and upgrade documentation projects across multiple frameworks using the farming-labs/docs CLI.

52|7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/farming-labs/docs --skill cli-farming-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli
Source: https://github.com/farming-labs/docs/tree/main/skills/farming-labs/cli
Command: npx skills add https://github.com/farming-labs/docs --skill cli-farming-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The CLI helps teams scaffold, bootstrap, and upgrade documentation projects quickly, reducing setup time and boilerplate.

Core Features & Use Cases

  • Init: bootstrap a new project for Next.js, TanStack Start, Nuxt, SvelteKit, or Astro with sensible defaults and optional i18n and API scaffolding.
  • Upgrade: safely upgrade the farming-labs/docs packages across frameworks, ensuring compatibility and alignment with templates.
  • Create your own theme: generate and wire in custom themes for consistent branding across docs.
  • API reference scaffolding: optionally scaffold API route handlers and reference docs to enable auto-generated references.

Quick Start

Use the farming-labs/docs CLI to bootstrap or upgrade a docs project by running the appropriate init or upgrade commands with optional flags such as --template, --name, --theme, --entry, --api-reference, and --api-route-root.

Frequently Asked Questions about cli

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

FAQPage Schema
How do I scaffold documentation for Next.js, Nuxt, SvelteKit, or Astro?

To scaffold documentation for Next.js, Nuxt, SvelteKit, or Astro, run the init command with the --template flag to bootstrap a project with sensible defaults and optional i18n support.

What is the best way to upgrade farming-labs docs packages across frameworks?

The best way to upgrade farming-labs docs packages is using the upgrade command, which ensures compatibility and alignment with your chosen template across different frameworks.

Can I auto-detect my framework when initializing a docs project?

Yes, you can auto-detect your framework during docs initialization; the CLI automatically identifies your existing setup when you run the init command without explicitly specifying a template.

How do I generate API reference documentation for my project?

To generate API reference documentation, use the --api-reference and --api-route-root flags during initialization to scaffold API route handlers and enable auto-generated references.

Does the CLI support custom themes for documentation branding?

Yes, the CLI supports custom themes for documentation branding; use the --theme flag during initialization to generate and wire in a theme for consistent branding across your docs.

Do I need specific flags to configure entry paths and i18n scaffolding?

Yes, you need specific flags like --entry to configure entry paths and optional i18n scaffolding flags during initialization to tailor the documentation project setup.