Качаем с http://orientdb.com архив и распаковываем. Есть следующие варианты работы с базой данных:

# ./server.sh

# http://localhost:2480/database/GratefulDeadConcerts

curl -D - -b cookie.txt -u root:passwd
curl -D - -b cookie.txt -u root:passwd
curl -D - -b cookie.txt -u root:passwd
curl  -u root:passwd

curl  -u root:passwd | python -m json.tool
sudo apt-get install jq
curl  -u root:passwd | jq

Using curl

Rest API

Create a new database (name pdm):

# Syntax: http://<server>:[<port>]/database/<database>/<type>

curl -X POST --user root:celeron757 ""
curl -X POST  -H "Content-type: application/json" http://admin:admin@localhost:2480/document/mytest -d '{"name": "fname1", "@class": "FooType", "embinfo": {"someint": 42, "name": "ename1", "@class": "EmbType1", "@type": "d"}}'

Create a new class where the schema of the vertexes or edges is known.

# Syntax: http://<server>:[<port>]/class/<database>/<class-name>

curl -X POST --user root:celeron757 ""

Create one or more properties into a given class

# Syntax: http://<server>:[<port>]/property/<database>/<class-name>/<property-name>/[<property-type>]

curl -X POST --user root:celeron757 ""

Дополнительные источники