.do
Cli

Database CLI

CLI reference for Database

Database CLI

A structured collection of data organized for efficient storage, retrieval, and management.

Commands

create

Initialize a new database with specified schema and configuration.

do database create [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

update

Modify database configuration, schema, or settings.

do database update [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

delete

Permanently remove the database and all contained data.

do database delete [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

backup

Create a point-in-time snapshot for disaster recovery.

do database backup [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

restore

Recover database data from a previous backup snapshot.

do database restore [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

migrate

Transfer database to a different version, engine, or location.

do database migrate [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

query

Execute read operations to retrieve data.

do database query [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

insert

Add new records or documents.

do database insert [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

updateRecords

Modify existing records or documents.

do database updateRecords [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

deleteRecords

Remove records matching specified criteria.

do database deleteRecords [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

index

Create optimized data structures to accelerate queries.

do database index [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

optimize

Improve performance through tuning or resource allocation.

do database optimize [options]

Options:

  • --help - Show help
  • --json - Output as JSON
  • --quiet - Suppress output

Examples

# create
do database create

# With JSON output
do database create --json

# Quiet mode
do database create --quiet