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.0.0.tar.gz (25.0 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.0.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clidbs-4.0.0.tar.gz
Algorithm Hash digest
SHA256 722b5b14eacd15d7057a1b8b79f1a2fc7a26893a37518875c6aba4a92f0ff060
MD5 9bd899355b9bb9594ce181abea8ec928
BLAKE2b-256 5101a9760dbcc4b5b8675af902d9b5bb5ebe8a59ee1f08d128ce5c02f7337421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clidbs-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce77dbd3ec53aaabb09f15225bbc33722ee8d67b9eec1a3999e6b59dcba3f3ee
MD5 5322d0f9331a753e307c12904ee62e4e
BLAKE2b-256 f59dd24b8dfab6122abad8092e94d8b8b0267bbd659fe761ca63f519ce3e34d0

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