New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mimeticinc/mim-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mimeticinc/mim-cli

Mimetic CLI — growth context for Claude Code, Codex, and shell workflows

Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

mim , the Mimetic CLI

Mimetic in your terminal: pull your site audits, prioritized findings, code-fix PRs, and session-replay insights straight into your shell , and into AI coding agents like Claude Code and Codex.

# authenticate this machine (opens the browser, device-code flow)
npx -y --package @mimeticinc/mim-cli mim auth login

# then pull a growth-context pack for one of your projects
mim context --project yourstore.com

Credentials are stored in ~/.mim/config.json (chmod 600), scoped to the projects your account owns. Requires Node 20+.

Install

Run on demand with npx (no global install):

npx -y --package @mimeticinc/mim-cli mim <command>

…or install the mim binary globally:

npm install -g @mimeticinc/mim-cli
mim auth login

Commands

CommandWhat it does
mim auth loginDevice-code login (opens the browser). --token <t> stores an existing token.
mim auth status / mim auth logoutShow / clear local credentials.
mim projectsList the projects/sites on your account.
mim contextPrint a growth-context pack for a project , ready to paste into an AI agent.
mim recordingsRecent session-replay summaries: what users did and where they hit friction.
mim replay [session_id]One replay's issues + a redacted narrative. Defaults to the latest.
mim findingsThe audit's prioritized findings and backlog.
mim query-ga4 --metrics sessionsRead-only GA4 report over your connected property.
mim query-gscRead-only Search Console query (top queries/pages).
mim setup-analytics [--wait]One-click hosted analytics setup: GA4 property + tag install (PR or Shopify pixel) + Search Console verification. --wait polls to completion.
mim setup-analytics --statusHosted setup progress; also retries the Search Console verification/sitemap followups.
mim setup-analytics --channel agentFor coding agents already in the site's repo: server provisions GA4 + Search Console, you apply the returned snippet yourself. No GitHub App or PR pipeline.
mim ads setupCreate a Google Ads account for the site under Mimetic's manager account: linked to GA4, auto-tagging on, owner invited as ADMIN.
mim ads statusThe project's linked Google Ads account and latest setup event.
mim ads query [--gaql <q>]Read-only GAQL report over the linked account (default: campaign performance, 30 days).
mim posthog connectConnect PostHog over OAuth (opens the approval URL; read-only scopes).
mim posthog query [--hogql <q>]Read-only HogQL over the connected project (default: daily events + unique users, 14 days).
mim klaviyo connectConnect Klaviyo over OAuth (opens the approval URL; read-only scopes).
mim klaviyo query [--resource <r>]Read-only listing from the connected Klaviyo account (campaigns, flows, lists, segments, metrics).
mim audit start <url> [--wait]Start an audit (reuses a running/completed one). --wait polls to completion.
mim audit rerun <url>Force a fresh audit.
mim audit status <id> / mim audit wait <id>Check / poll an audit.
mim fixes listList fixable findings + PR/review state.
mim fixes start <rank>Queue a code fix , Mimetic opens a PR with a preview link.
mim fixes open <rank>Open the PR, preview, diff, or workflow for a fix.
mim billing status / checkout / portalStripe billing for a project.
mim mcp install claude / mim mcp install codexWire Mimetic into Claude Code / Codex.

Common options

Option
--project <key>Project/site key. Defaults to MIM_PROJECT or your saved default.
--format <json|markdown>Output format (--json is an alias for --format json).
--limit <n>Items to request, up to 100 (default 20).
--mode <slim|full>Audit depth. slim (default, fast) or full (deeper, adds SDK intel).
--waitWith audit start/rerun or setup-analytics, poll until completion.
--api-base-url <url>API origin. Defaults to MIM_API_BASE_URL or https://trymimetic.com.

MCP (Claude Code / Codex)

Mimetic ships a read-only MCP server, so your coding agent can see what's broken and why , redacted session narratives and findings, never raw replay payloads.

mim mcp install claude   # or: mim mcp install codex

Environment

MIM_API_TOKEN, MIM_API_BASE_URL, MIM_PROJECT, MIM_CONFIG_DIR (default ~/.mim), MIM_TELEMETRY=0 to disable usage telemetry.

  • Docs: https://trymimetic.com/api
  • Agentic / x402 API: https://trymimetic.com/x402

MIT © Mimetic Inc

Keywords

mimetic

FAQs

Package last updated on 10 Jul 2026

Related posts