Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Gel CLI

$ gel Official Med Risk
Gel Data · Database & Data · Apache-2.0 OR MIT · macos / linux / windows

gel is the Rust CLI for Gel (formerly EdgeDB), handling EdgeQL/SQL queries with --output-format json (json-pretty, json-lines), project instance lifecycle, and schema migrations (gel migration create, gel migrate) with --non-interactive support.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install geldata/tap/gel-cli
CLI vs MCP Decision CLI Preferred vs MCP

gel reads local gel.toml and dbschema/ migration files directly to diff schemas and run JSON queries without needing an MCP wrapper.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports --output-format json / json-pretty / json-lines on gel query, --non-interactive on migration creation, and --quiet on migrate.

  • gel query --output-format json-lines and gel migration create --non-interactive
Trust & Safety 21 / 25

Separates migration generation (migration create) from execution (migrate), uses gel migration status checks, and isolates credentials via --dsn or credentials files.

  • Two-step migration create + migrate workflow and migration status check
Setup & Portability 13 / 15

Single Rust binary via Homebrew tap (geldata/tap/gel-cli) and official install script on macOS, Linux, and Windows.

  • Native Rust binary distributed via Homebrew tap and install script
Utility & Efficiency 14 / 15

Unifies local instance management, EdgeQL/SQL querying, and schema diff migrations cleanly around gel.toml.

  • Integrated query, migration, instance, and project commands
Maintenance & Lineage 8 / 10

Official geldata/gel-cli dual-licensed under Apache-2.0 OR MIT.

  • Official Gel Data repository under Apache-2.0 / MIT
Docs & Verifiability 8 / 10

Clear CLI reference at docs.geldata.com/reference/cli and helpful --help output.

  • Official CLI reference at docs.geldata.com

Security, Auth & Guardrails

Auth Modes
Config File Env API Key OAuth Browser
Credential Storage

Stores instance credentials under ~/.config/edgedb/credentials/ (or Gel config dir) and supports --dsn, --credentials-file, and GEL_DSN / GEL_SECRET_KEY env vars.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Apache-2.0 / MIT open-source CLI; Gel Cloud hosted instances incur vendor charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Gel CLI (gel) Agent Rules
- Use `gel query --output-format json` (or `json-lines`) for parseable query output.
- Always pass `--non-interactive` on `gel migration create` and verify with `gel migration status` before `gel migrate`.
- Avoid `--dev-mode` on shared or production instances.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run an EdgeQL query with JSON-lines output
gel query --output-format json-lines "select schema::ObjectType { name } filter .builtin = false;"

Queries user-defined schema types in Gel and emits newline-delimited JSON.

Check pending migration status
gel migration status

Compares local dbschema/migrations/ files against the target instance revision.

Controlled Writes & Previews

Create a non-interactive migration file
gel migration create --non-interactive

Generates the next migration .edgeql script from dbschema/ diffs without interactive prompts.

Strengths for Agents

  • + gel query natively supports json, json-pretty, and json-lines output formats.
  • + gel migration create --non-interactive generates deterministic .edgeql migration files from dbschema/ diffs.

Caveats & Pitfalls

  • ! Complex ambiguous schema changes (such as column renames) fail fast under --non-interactive and require manual resolution.
  • ! Rebrand from edgedb to gel means older projects still reference edgedb.toml or EDGEDB_* env vars.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI