Arangosh Examples
- : name of the database to connect to
—server.username <string>
: database username—server.authentication <bool>
: whether or not to use authenticationFor example, to connect to an ArangoDB server on IP 192.168.173.13 on port8530 with the user foo and using the database test, use:
arangosh will then display a password prompt and try to connect to the server after the password was entered.
The shell will print its own version number and if successfully connectedto a server the version number of the ArangoDB server.
The schema of an endpoint is comprised of a protocol and a socket in the formatprotocol+socket://
. There are alternatives and shorthands for some combinations,ssl://
is equivalent to and https://
for instance:
Using Arangosh
To change the current database after the connection has been made, youcan use the db._useDatabase()
command in Arangosh:
Hide execution results
To get a list of available commands, Arangosh provides a help() function.Calling it will display helpful information.