Getting Started
Using the CLI
How to start a bknd instance using the CLI.
Instead of running bknd using a framework, you can also use the CLI to quickly spin up a full functional instance. To see all available options, run:
Here is the output:
Starting an instance (run
)
To see all available run
options, execute npx bknd run --help
.
In-memory database
To start an instance with an ephemeral in-memory database, run the following:
Keep in mind that the database is not persisted and will be lost when the process is terminated.
File-based database
To start an instance with a file-based database, run the following:
Turso/LibSQL database
To start an instance with a Turso/LibSQL database, run the following:
The --db-token
option is optional and only required if the database is protected.