Releases: herdux/herdux-cli
Releases · herdux/herdux-cli
v0.9.1
Bug Fixes
restore(PostgreSQL plain, MySQL): SQL files produced bypg_dump -C, pgAdmin, DBeaver, ormysqldump --databasesembed\connect,CREATE DATABASE, andUSEdirectives that redirected the client to the source database, ignoring--db. The plain SQL content is now filtered to strip these directives before being piped to the database client, ensuring the restore always targets the database specified via--db.
v0.9.0
Features
- MongoDB engine support (
--engine mongodb). Requiresmongosh,mongodump, andmongorestore. - Backup format: archive (
mongodump --archive --gzip) producing.mongodumpfiles. Plain format is not supported and exits with a clear error. hdx inspect <file>.mongodump: inspect MongoDB archive dumps offline (gzip header verification, no live connection required).- MongoDB integrated into
hdx cloud uploadandhdx restore s3://workflows (engine-agnostic, no changes required). mongodbadded to npm keywords.
v0.8.2
Features
hdx cloud listnow defaults to directory mode: shows only immediate children at the given level, similar tols. Pass--recursiveto list all objects.hdx cloud upload <file> [--prefix PREFIX]: upload an existing local file to the configured S3 bucket.hdx backup --no-keep: delete the local backup file after a successful upload (requires--upload).hdx cloud deletenow verifies the key exists before attempting deletion. Exits with an error if not found or if it is a directory prefix.
Bug Fixes
hdx cloud list <path>now accepts path as a positional argument (previously silently ignored without--prefix).hdx cloud downloadnow saves files to~/.herdux/backups/by default instead of the current working directory.
v0.8.1
Bug Fixes
hdx cloud listno longer crashes with a stack overflow when the bucket contains a large number of objects. Display is now capped at 200 items with a truncation notice.
v0.8.0
Features
hdx cloud config: configure S3 bucket, region, credentials (stored in~/.herdux/config.json;AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEYenv vars take priority)hdx cloud list [--prefix PREFIX]: list backup files in the configured bucket with size and datehdx cloud download <key> [-o DIR]: download a backup from S3 to a local directoryhdx cloud delete <key> [-y]: delete a backup from S3 with optional confirmation skiphdx backup --upload [prefix]: upload the backup to S3 after creationhdx restore s3://bucket/key --db DB: restore directly from an S3 URL- Support for S3-compatible providers (Cloudflare R2, MinIO, DigitalOcean Spaces) via
hdx cloud config endpoint URL
v0.7.0
Features
- hdx docker - Manage database containers without an active connection
hdx docker list- List running postgres/mysql/mariadb containers with engine, port, and statushdx docker list --all- Include stopped containershdx docker start <name>- Start a stopped containerhdx docker stop <name>- Stop a running containerhdx docker stop <name> --remove- Stop and remove a container
Bug Fixes
- hdx inspect: Added
.tarformat support (PostgreSQL tar backup format)
v0.6.0
Features
- hdx inspect - Inspect backup files offline, without a database connection
- Supports
.dumpand.tar(PostgreSQL),.sql(any engine),.db/.sqlite(SQLite) - Displays schema structure, table definitions, and TOC entries
- Supports
Bug Fixes
- MySQL:
--format customnow fails with a clear error message instead of silently using the wrong format
UX Improvements
- Commands now display the connection context (host, port, user) in the output header
- Improved terminal output consistency across all commands
v0.5.0
Features
- SQLite engine support (
--engine sqlite) - file-based, no server required - Databases stored at
~/.herdux/sqlite/by default; override with--host <dir> test:e2e:sqlitenpm script ande2e-sqliteCI job (no Docker required)
Bug Fixes
- Connection resolver now skips port-based auto-discovery for portless engines (fixes
--engine sqlitecrash) sqliteadded to the valid engines list (--engine sqliteno longer rejected)
v0.4.0
Features
- MySQL engine support (
--engine mysql) - requiresmysqlandmysqldumpbinaries - Multi-engine architecture: all commands are now engine-agnostic behind the
IDatabaseEngineinterface --engineglobal flag accepted by all commands- Engine type saved per server profile and in global config (
herdux config set engine mysql) - GitHub Actions CI, Dependabot config, and Husky pre-commit hooks