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 up is the command that brings the Ghostly engine to life. It prepares the local SQLite database, generates the Prisma client, seeds the default admin account on a first run, and then starts the combined API and static web frontend as a long-running process. The terminal stays attached — press Ctrl+C to shut everything down cleanly.
Prerequisites
~/.ghostly/auth.json must exist before running ghostly up. If it does not, the command exits immediately with an error and prompts you to run ghostly install first.
What it does internally
Read credentials
Reads
~/.ghostly/auth.json and converts it into environment variables (GHOST_API_KEY, GHOST_API_URL, ASSIST_LLM_*, etc.) for the child process.Apply schema migrations
Runs
prisma db push --skip-generate --accept-data-loss against the local SQLite database at ~/.ghostly/ghostly.db. Creates the database file if it does not exist yet.Generate the Prisma client
Runs
prisma generate --schema schema.prisma locally so that the bundled Prisma client matches the current schema. This step is required every time the CLI is updated.Seed the admin user
On a brand-new database only, runs the bundled seed script to create the default admin account. This step is skipped on subsequent starts.
| Field | Value |
|---|---|
admin@ghostly.local | |
| Password | admin123 |
Flags
Port the API and dashboard listen on. The health check endpoint and dashboard URL are both derived from this value.
Usage
Terminal output
After all preparation steps complete, the engine prints its status summary:Health check
The/health endpoint returns HTTP 200 when the engine is ready. Use it for scripted readiness polling:
AI-assisted mode
If no LLM is configured inauth.json and neither ASSIST_LLM_API_KEY nor OPENAI_API_KEY is set in the environment, the engine emits a warning but starts normally. Assisted test generation will be unavailable until you run ghostly config.
When the cursor-cli provider is configured, the engine logs Modo asistido: Cursor Agent CLI (auth local) instead of the warning.
Graceful shutdown
Ctrl+C sends SIGINT to the CLI process, which forwards the signal to the child server. If the child does not exit within 1.5 seconds, SIGKILL is sent to force termination. The SIGTERM signal is handled identically — useful for process managers and container runtimes.
If
ghostly up reports that the API bundle is missing, the CLI was installed
from an incomplete build. Run ghostly update to fetch the full package and
try again.