create-database
Create a database.
Syntax
fauna create-database DBNAME [--url <value>] [--timeout <value>] [--secret <value>] [--endpoint <value>] [--environment <value>]
Description
The create-database
command creates a database with the provided
database name.
If command line options are omitted, Fauna uses the default configuration file options.
Options
Option | Description |
---|---|
|
Connection endpoint, from the ~/.fauna-shell file. |
|
Environment to use, from a Fauna project. |
|
Help for |
|
Secret key. Overrides the secret in the ~/.fauna-shell file. |
|
Connection timeout (milliseconds). |
|
Database URL. Overrides the URL in the \~/.fauna-shell file. |
Examples
Create a database called my-test-db
:
fauna create-database my-test-db
creating database my-test-db
created database 'my-test-db'
To start a shell with your new database, run:
fauna shell 'my-test-db'
Or, to create an application key for your database, run:
fauna create-key 'my-test-db'
Verify the database is created:
fauna list-databases
listing databases
my-test-db
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!