@elmohq/cli

中文文档
0.7.12发布于 2026/11/14MITES Module近 30 天下载 2834
原始使用文档
文档目录7 节
  1. What is Elmo?
  2. Installation
  3. Quick Start
  4. Commands
  5. Useful flags
  6. Telemetry
  7. Star, contribute, and chat

Elmo

The official CLI for Elmo — open source AI visibility tracking and optimization.

Read the docs »


npm version  Docs  Demo  GitHub stars  Discord


What is Elmo?

Elmo is an open source platform for tracking and optimizing how your brand shows up in AI assistants like ChatGPT, Claude, Gemini, and Perplexity. Define the prompts your customers ask, run them across providers on a schedule, and get visibility into mentions, sentiment, citations, and competitor positioning over time.

@elmohq/cli is the fastest way to run Elmo on your own infrastructure. It generates a Docker Compose stack, manages secrets and configuration, and gives you a single command to start, stop, and operate your instance.

Installation

npm install -g @elmohq/cli

Requires Docker and Docker Compose.

Quick Start

# 1. Walk through the interactive setup wizard
elmo init

# 2. Start the stack
elmo compose up -d

# 3. Open the app at http://localhost:1515

elmo init will prompt you for a few things (database, AI provider credentials), generate elmo.yaml and .env, and optionally start the stack for you.

For the full self-hosting walkthrough, see the Elmo docs.

Commands

CommandDescription
elmo initInteractive wizard to set up a local Elmo instance
elmo compose <args...>Run any docker compose command against your Elmo project (e.g. elmo compose up -d, elmo compose down, elmo compose logs -f, elmo compose build, elmo compose ps)
elmo edit <env|compose>Change API keys, scrape targets, or the Docker Compose YAML
elmo upgradeMove your deployment to this CLI's version — runs migrations, re-pins image tags, and restarts the stack

Run elmo --help or elmo <command> --help for the full list of flags.

Useful flags

  • --dir <path> — point any command at a specific config directory (defaults to ~/.elmo).
  • elmo init --dev — build images from a local checkout of the repo instead of pulling from the registry.

Telemetry

The CLI sends anonymous install and command events so we can understand which flows people use and where setup breaks. To opt out, either export DISABLE_TELEMETRY=1 in your shell, or add it to your .env:

elmo edit env       # add DISABLE_TELEMETRY=1
elmo compose up -d  # restart so the deployment picks it up

See the telemetry docs for details on what is collected.

Star, contribute, and chat

Elmo is built in the open and we'd love your help.

  • ⭐ Star us on GitHub — it genuinely helps more people find the project.
  • 💬 Join the Discord — get help, share what you're building, and talk to the team.
  • 🐛 File an issue if something breaks or you have a feature request.

版本与发布记录

@elmohq/cli 共发布 47 个版本,首次发布于 2026/04/18;过去 12 个月发布了 47 个版本。

版本发布日期距今
0.7.12latest2026/11/14今天
0.7.112026/11/13今天
0.7.102026/11/13今天
0.7.92026/11/131 天前
0.7.82026/11/068 天前
0.7.72026/10/2916 天前

关于 @elmohq/cli 的常见问题

如何安装 @elmohq/cli?

在项目目录运行 npm install @elmohq/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 elmo,可以用 npx elmo 直接运行。

@elmohq/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elmohq__cli 是否存在。

@elmohq/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@elmohq/cli 可以商用吗?

@elmohq/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@elmohq/cli 的下载量有多少?

根据 npm 官方下载统计,@elmohq/cli 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,834 次,日均约 94 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elmohq/cli 还在维护吗?

最新版本 0.7.12 发布于 2026/11/14(今天);至今共发布 47 个版本,其中过去 12 个月发布了 47 个;首次发布于 2026/04/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。