| name | memgraph-mgconsole-cli |
| description | Guide to using Memgraph's mgconsole CLI for connecting to Memgraph, running Cypher, configuring output, and using interactive or non-interactive modes. Use when the user asks how to install, connect, or run queries with mgconsole. |
| compatibility | Requires access to a running Memgraph instance. Docker recommended for mgconsole. |
| metadata | {"author":"memgraph","version":"0.0.1"} |
Memgraph mgconsole CLI
Use mgconsole to connect to Memgraph and execute Cypher queries from the command line.
When to Use
- User asks how to install or start mgconsole
- User needs to connect to Memgraph from a terminal
- User wants to run Cypher queries non-interactively (scripts or CI)
- User needs to change output format, history, or verbose execution info
Prerequisites
- A running Memgraph instance (local or remote)
- Docker available for mgconsole image (recommended)
- Optional: mgconsole binary for macOS or Windows
Quick Start
Start mgconsole via Docker
docker run -it memgraph/mgconsole:latest
- Local Memgraph on macOS/Windows (use host.docker.internal):
docker run -it memgraph/mgconsole:latest --host host.docker.internal