list-keys

List keys in the current database.

Syntax

fauna list-keys [--url <value>] [--timeout <value>] [--secret <value>] [--endpoint <value>] [--environment <value>]

Description

The list-keys command lists the keys created in the current database.

If command line options are omitted, Fauna uses the default configuration file options.

Options

Option Description

--endpoint

Connection endpoint, from the ~/.fauna-shell file.

--environment

Environment to use, from a Fauna project.

--help

Help for create-database command.

--secret

Secret key. Overrides the secret in the ~/.fauna-shell file.

--timeout

Connection timeout (milliseconds).

--url

Database URL. Overrides the URL in the \~/.fauna-shell file.

Example

For this example, assume that you have previously created some keys. Display the list with fauna list-keys:

fauna list-keys
Key ID               Database             Role
373686120364376132   [current]            admin
373711801788923969   [current]            server
373714670256652356   internal             server
374523090163466305   my-test-db           admin

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!