ArangoDB Tutorial on ArangoDB Command Line

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
}