The Ghostly CLI (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Meza-dev/Ghostly/llms.txt
Use this file to discover all available pages before exploring further.
@ghostly-io/cli) is the single entry point for every local operation: generating credentials, wiring up the Cursor MCP server, launching the testing engine, and keeping everything up to date. Once installed globally, the ghostly binary (and its legacy ghost alias) give you full control of your local Ghostly environment from any directory.
Installation
Install the CLI globally from npm. Node.js 20 or later is required.ghost binary is registered alongside ghostly as a legacy alias — both resolve to the same entry point.
The
ghost alias exists for backwards compatibility. New scripts and
documentation should use ghostly.Commands
| Command | Description |
|---|---|
ghostly keygen | Generate or rotate the API key stored in ~/.ghostly/auth.json |
ghostly install | Write credentials, inject the MCP server into Cursor, install Chromium, and copy Cursor rules |
ghostly config | Set the LLM provider, model, and API key for AI-assisted test mode |
ghostly up | Migrate the database, seed the admin user, and start the API + dashboard |
ghostly update | Upgrade the globally installed CLI to the latest published version |
The ~/.ghostly/auth.json file
All persistent configuration lives in a single JSON file at ~/.ghostly/auth.json. It is created by ghostly install and written with mode 0600 (owner-read-only). Its structure is:
apiKey and apiUrl are mandatory. The llm block is optional and only required when using AI-assisted mode. extraEnv is an escape hatch for injecting arbitrary environment variables into the engine process.
Recommended setup flow
Run the interactive installer
~/.cursor/mcp.json, installs Chromium, and copies Cursor rules and skills.Configure the AI provider
Command pages
keygen
Generate or rotate the API key in
~/.ghostly/auth.jsoninstall
Interactive setup for MCP, Chromium, and Cursor rules
config
Set the LLM provider and credentials for assisted mode
up
Start the local testing engine and dashboard
update
Upgrade to the latest published CLI version
System requirements
| Requirement | Version |
|---|---|
| Node.js | >=20 |
| Cursor | Any recent version (for MCP integration) |
| Chromium | Installed automatically by ghostly install |