ArangoDB - Command Line


Advertisements

In this chapter, we will discuss how Arangosh works as the Command Line for ArangoDB. We will start by learning how to add a Database user.

Note − Remember numeric keypad might not work on Arangosh.

Let us assume that the user is “harry” and password is "hpwdb".

127.0.0.1:8529@_system> require("org/arangodb/users").save("harry", "hpwdb");

Output

{
   "user" : "harry",
   "active" : true,
   "extra" : {},
   "changePassword" : false,
   "code" : 201
}
Advertisements