CLI Getting Started
Install LogicStamp Context CLI and generate AI-ready context for your TypeScript projects.
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-contextInitialize 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 initGenerate AI Context
Run the context generator to analyze your codebase and create structured bundles optimized for AI assistants.
stamp contextWith 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.jsonin your project root with an overview - •
context.jsonfiles 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 --watchAdvanced Options
Customize output and optimize token usage:
stamp context --compare-modesNext Steps
Explore the complete command reference or learn about advanced features.