Skip to main content
Version: 2.2.1

Importing Cypher queries (.cypherl format)

When Memgraph is running, cypher queries are imported by running mgconsole in non-interactive mode. The user can import queries saved in e.g. queries.cypherl by issuing the following shell command:

mgconsole < queries.cypherl

If you installed the Memgraph image using Docker, you will need to run the client using the following command:

docker run -i --entrypoint=mgconsole memgraph/memgraph-platform --host HOST < queries.cypherl

Remember to replace HOST with valid IP of the container (see Note for Docker users).

For more information about mgconsole options run:

mgconsole --help