Gremlin控制台内置了对此的支持,并对此进行了详细描述
here
. 基本连接命令是:
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Configured localhost/127.0.0.1:8182
此时可以对远程图形发出遍历:
gremlin> :> g.V().values('name')
==>marko
==>vadas
==>lop
==>josh
==>ripple
==>peter
:>
语法您可以将REPL置于“console”模式,并且不再需要该前缀:
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[5ff68eac-5af9-4140-b3b8-d9311f30c053] - type ':remote console' to return to local mode