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.1.0.tar.gz (24.7 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.1.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clidbs-4.1.0.tar.gz
Algorithm Hash digest
SHA256 a41522482920b14e282cb33385f27c0fbed134c8f49e3b7513aa4f61dc04e48b
MD5 599cd41e3ab8bc7f8349e8c05555ec6b
BLAKE2b-256 2f70a51350efa420450043e629ae7caf20efc4ac3530fcfa17354595b609a1af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clidbs-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 991f43e5c23f595dacff7343ea4043f173d5efcc4ccc3a95ac7ca106d76cfade
MD5 9869a68410cd0c94a910cd8abb5c1d06
BLAKE2b-256 065e18ffc3434997c721d755aa897edd9b3e1182b3e4422129e8e04a1867245d

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