Documentation
Installation, commands, and the core working flow. This page covers the commands you need to install llmenv, set identity, initialize a repo, inspect the merged context, and sync it into supported tools.
Installation
Install globally from npm, then confirm the CLI is available before you begin project setup.
$npm install -g llmenv$llmenv --helpIdentity
Set the developer baseline once so future sessions inherit the same name, role, and communication style.
$llmenv identity --github your-usernameProject setup
Initialize inside a repository and immediately scan the codebase so context comes from real files instead of memory.
$llmenv init$llmenv scanProfiles and pins
Switch task modes as the work changes and keep recurring constraints sticky with learned or scoped pins.
$llmenv use debug$llmenv pin "Use describe/it format" --scope "*.test.ts"Inspect and sync
Use status to inspect the merged layer stack, then sync it into your AI tool rules or preview it with a dry run.
$llmenv status$llmenv inject "Review this auth flow" --dry$llmenv syncCLI Commands Reference
llmenv initInitialize local project configuration in the current repository.
llmenv scanScan package files, TypeScript config, structure, and env examples to enrich project context.
llmenv identity --github <username>Create or update your global developer identity, optionally using GitHub.
llmenv use [profile]View or switch the active profile between build, review, debug, learn, and refactor.
llmenv pin <fact>Create a persistent fact with optional `--learn` and `--scope` flags.
llmenv pinsList saved pins from your global llmenv configuration.
llmenv statusDisplay the merged identity, profile, project context, and pins.
llmenv syncWrite compact context into supported AI tool rule files.
llmenv inject <prompt>Wrap a prompt with context and optionally send it to a configured AI provider.
llmenv projectsList registered projects managed through llmenv.
llmenv switchChoose a registered project and jump back into that workspace.
llmenv historyReview recorded project decision history for previous AI-assisted work.
llmenv configConfigure AI provider credentials for native prompt injection.