Package Exports
- reconstruct-cli
- reconstruct-cli/dist/cli/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reconstruct-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Reconstruct CLI
Reconstruct CLI — sign in, install MCP and assistant plugins, and sync commands/rules from templates.
Installation
npm install -g reconstruct-cliRecommended first-time setup
Use one primary path for MCP and supported IDE integrations (no manual API key paste):
Sign in (device code; stores credentials under
~/.reconstruct/):reconstruct auth login
Install MCP + plugins for the assistants you use (creates an
mcp_key via your account; currently Cursor and Claude Code in the installer):reconstruct install # or, e.g.: reconstruct install --assistant cursor,claude
Optional — commands and rules from versioned templates (downloaded release; global or project scope):
reconstruct init
Full detail: docs/cli-auth-install.md.
Templates repository
reconstruct init downloads published bundles from github.com/blkinnovate/reconstruct-templates. Releases should attach a templates-*.tar.gz asset. To point elsewhere, set RECONSTRUCT_TEMPLATES_OWNER / RECONSTRUCT_TEMPLATES_REPO, or use RECONSTRUCT_TEMPLATES_SOURCE=local with RECONSTRUCT_TEMPLATES_PATH (see src/templates/downloader.ts).
reconstruct init (templates only)
Installs Reconstruct commands and rules from the published template bundle. This is not a substitute for reconstruct auth login + reconstruct install when you need authenticated MCP registration and IDE plugin install.
reconstruct init will:
- Auto-detect your AI coding assistant (or accept
--assistant) - Prompt for installation mode (global or project-based)
- If MCP is already configured, verify it; if not, print the recommended
auth login/installsteps and continue with template install (it no longer blocks on interactive manual key entry by default) - Download and install Reconstruct commands and rules
Command options
reconstruct init [options]
Options:
--assistant <name> cursor or claude
--template-version <ver> Use specific template version (default: latest)
--mode <global|project> Installation mode: global or project-based
--legacy-mcp-setup Deprecated: interactive paste of an mcp_ key (prefer auth + install)
-h, --help Display help
-V, --version Display versionExamples
Initialize with auto-detection:
reconstruct initInitialize for a specific assistant:
reconstruct init --assistant cursor
reconstruct init --assistant claudeProject-based installation:
reconstruct init --mode projectUse a specific template version:
reconstruct init --template-version v1.0.0Authenticated install (reconstruct auth + reconstruct install)
After reconstruct auth login, reconstruct install registers the reconstruct MCP server and applies assistant-specific wiring for Cursor and Claude Code (see the doc above for Cursor plugin and Claude marketplace plugin).
Optional --with-skills copies commands/rules from a local template directory (same idea as template files from init, without downloading).
Full detail: docs/cli-auth-install.md in this repo.