Skip to main content

A modern CLI tool for managing databases on VPS systems with SSL support

Project description

CLIDB

A command-line tool for managing local development databases using Docker.

Features

  • Create and manage PostgreSQL, MySQL, MongoDB, and Redis databases
  • Automatic port allocation for multiple databases
  • SSL/TLS support with automatic certificate generation
  • Performance metrics monitoring
  • Database backup and restore functionality
  • Discord notifications for database events
  • Docker installation helper

Installation

pip install clidb

Usage

Creating a Database

clidb create mydb --type postgres --version 16

Managing Databases

# List all databases
clidb list

# Get database info
clidb info mydb

# Start/stop databases
clidb start mydb
clidb stop mydb

# Remove a database
clidb remove mydb

Monitoring

# View real-time metrics
clidb metrics mydb --watch

Backup and Restore

# Create a backup
clidb backup mydb --description "Pre-deployment backup"

# List available backups
clidb backups --db mydb

# Restore from backup
clidb restore mydb 20240101_120000

# Delete a backup
clidb delete-backup mydb 20240101_120000

SSL Configuration

clidb ssl mydb example.com --email admin@example.com

Discord Notifications

You can enable Discord notifications for database events by providing a webhook URL:

clidb create mydb --discord-webhook https://discord.com/api/webhooks/...

Or set it via environment variable:

export CLIDB_DISCORD_WEBHOOK=https://discord.com/api/webhooks/...

Docker Installation

If Docker is not installed, you can use:

clidb install-docker

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clidbs-4.2.0.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clidbs-4.2.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file clidbs-4.2.0.tar.gz.

File metadata

  • Download URL: clidbs-4.2.0.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for clidbs-4.2.0.tar.gz
Algorithm Hash digest
SHA256 2386fbafd296ec040589ef80186b62b537c524dcb21eb03844747ec53aa90a1a
MD5 31491f573e104f8c4a417b87490d993c
BLAKE2b-256 45b6db32176ba91e6f4a51cc3ee2c5937bcef436973dad0116974703a07bd243

See more details on using hashes here.

File details

Details for the file clidbs-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: clidbs-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for clidbs-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c399d3cf885e5c3bb3a3bccb90d839b79bb0c59b53ab8c0c72bc9ea5e8e5b91
MD5 93a263d2976e9619f618edc3fc3628c8
BLAKE2b-256 7001478ec8b506dd4db7365b671c7972ee8da20bf230290450bdccb873da744b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page