CLI Getting Started

Install LogicStamp Context CLI and generate AI-ready context for your TypeScript projects.

Quick start
Global install
CLI Tool

Prerequisites

🟢

Node.js >= 20

Latest LTS recommended

⚛️

TypeScript

Your project codebase

đź’»

Terminal

Basic CLI knowledge

Install LogicStamp Context

Install the CLI globally to use the stamp command from anywhere on your system.

npm install -g logicstamp-context

Initialize Your ProjectOptional

Set up .gitignore patterns and LLM_CONTEXT.md. If you skip this step, stamp context uses safe defaults (CI-friendly, never prompts).

đź”’ Security: By default, stamp init runs a security scan to detect secrets in your JS/TS/JSON files. Use stamp ignore <file> to exclude files with detected secrets.

cd your-react-project stamp init

Generate AI Context

Run the context generator to analyze your codebase and create structured bundles optimized for AI assistants.

stamp context

With Style extracts Tailwind CSS classes, SCSS modules, Material UI themes, styled-components, and framer-motion animations.

What You Get

LogicStamp generates structured context files in your project:

  • •context_main.json in your project root with an overview
  • •context.json files in each folder with component contracts

These files describe your components' props, hooks, dependencies, and relationships—optimized for AI consumption.

Next Steps

Keep Context Fresh (Watch Mode)

Automatically regenerate context as you code:

stamp context --watch

Learn more about watch mode →

Advanced Options

Customize output and optimize token usage:

stamp context --compare-modes

Next Steps

Explore the complete command reference or learn about advanced features.