Skip to content

Run Aerospike Quick Look

For the complete documentation index see: llms.txt

All documentation pages available in markdown.

This page describes how to get started using Aerospike Quick Look (AQL)

Get started

To run AQL, start with the following command:

aql

For example, to list all the namespaces in your database instance, enter the following command:

show namespaces

List of AQL command options

There are a number of options that you can use with the aql command.

OptionPurpose
-V, --versionPrint AQL version information.
-O, --optionsPrint command-line options message.
-E, --helpPrint command-line options message and AQL commands documentation.
-c, --command=cmdExecute the specified command.
-f, --file=pathExecute the commands in the specified file.
-e, --echoEnable echoing of commands. Default: disabled.
-v, --verboseEnable verbose output. Default: disabled.

Provide the password

Pass the user’s password with -P or --password. Without a value, aql prompts for the password. Starting with Tools 13.2.0, the value can also be env:VAR, env-b64:VAR, b64:VALUE, file:PATH, or secrets:..., and --tls-keyfile-password accepts the same forms. The secrets: form fetches the value from Aerospike Secret Agent, using the --sa-address, --sa-port, --sa-timeout, and --sa-ca-file options. See Password and secret sources.

The following example reads the password from an environment variable:

Terminal window
aql -U USERNAME -P env:PASSWORD_VARIABLE -c "show namespaces"

Configure AQL with configuration files

You can configure AQL using a configuration file. See Aerospike tools configuration file for more information.

The following options control configuration file behavior:

OptionDefaultDescription
--no-config-file disabledDon’t read any configuration file. The configuration file options --no-config-file and only-config-file are mutually exclusive.
--instance SUFFIX-In the configuration file, you can specify a group of clusters that share a common suffix with the --instance option. Refer to Instances for more information.
--config-file PATH-Read this file after default configuration file.
--only-config-file PATH-Read only this configuration file. The configuration file options --no-config-file and only-config-file are mutually exclusive.