Skip to content

Commit e329647

Browse files
chore(release): bump version to 0.8.0
1 parent efef17b commit e329647

File tree

4 files changed

+95
-3
lines changed

4 files changed

+95
-3
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and
66

77
---
88

9+
## [0.8.0] - 2026-03-03
10+
11+
### Added
12+
13+
- `hdx cloud config` command: configure cloud storage settings (bucket, region, access-key, secret-key, endpoint). Credentials stored in `~/.herdux/config.json`; env vars `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` take priority.
14+
- `hdx cloud list [--prefix PREFIX]` command: list backup files in the configured S3 bucket. Displays key, size, and last modified date in a table.
15+
- `hdx cloud download <key> [-o DIR]` command: download a backup file from the configured S3 bucket to a local directory.
16+
- `hdx cloud delete <key> [-y]` command: delete a backup file from the configured S3 bucket. Requires confirmation unless `--yes` is passed.
17+
- `hdx backup --upload [prefix]` flag: after a successful backup, upload the file to the configured S3 bucket. Accepts an optional key prefix (e.g. `backups/`).
18+
- `hdx restore s3://bucket/key --db mydb`: restore directly from an S3 URL. Downloads to a temp file, restores, then cleans up automatically.
19+
- Support for any S3-compatible provider (Cloudflare R2, MinIO, DigitalOcean Spaces) via `hdx cloud config endpoint URL`.
20+
21+
---
22+
923
## [0.7.0] - 2026-03-02
1024

1125
### Added

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
A fast, interactive CLI that removes friction from daily local database workflows, especially when juggling multiple instances and large datasets.
1414

15-
![Version](https://img.shields.io/badge/version-0.7.0-blue.svg)
15+
![Version](https://img.shields.io/badge/version-0.8.0-blue.svg)
1616
![License](https://img.shields.io/badge/license-MIT-green.svg)
1717
![Node](https://img.shields.io/badge/node-18%2B-43853d.svg)
1818
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-316192?style=flat&logo=postgresql&logoColor=white)
@@ -258,6 +258,44 @@ hdx docker stop pg-dev --remove # Stop and remove the container
258258

259259
---
260260

261+
### `herdux cloud`
262+
263+
Manages backup files in S3-compatible cloud storage (AWS S3, Cloudflare R2, MinIO, DigitalOcean Spaces, and others).
264+
265+
```bash
266+
# Configure
267+
hdx cloud config bucket my-bucket
268+
hdx cloud config region us-east-1
269+
hdx cloud config access-key AKIAIO...
270+
hdx cloud config secret-key wJalrX...
271+
hdx cloud config endpoint https://account.r2.cloudflarestorage.com # optional, for non-AWS providers
272+
273+
# Manage backups in the bucket
274+
hdx cloud list # List all backup files in the bucket
275+
hdx cloud list --prefix backups/mydb/ # Filter by key prefix
276+
hdx cloud download backups/mydb_2026-03-03.dump
277+
hdx cloud download backups/mydb_2026-03-03.dump -o /tmp/
278+
hdx cloud delete backups/mydb_2026-03-03.dump # Asks for confirmation
279+
hdx cloud delete backups/mydb_2026-03-03.dump --yes
280+
281+
# Backup directly to S3
282+
hdx backup mydb --upload backups/ # Backup and upload to prefix backups/
283+
hdx backup mydb --upload # Backup and upload to bucket root
284+
285+
# Restore directly from S3
286+
hdx restore s3://my-bucket/backups/mydb_2026-03-03.dump --db mydb
287+
```
288+
289+
Credentials can also be provided via env vars (recommended for CI/production):
290+
291+
```bash
292+
export AWS_ACCESS_KEY_ID=AKIAIO...
293+
export AWS_SECRET_ACCESS_KEY=wJalrX...
294+
export AWS_DEFAULT_REGION=us-east-1
295+
```
296+
297+
---
298+
261299
## Configuration & Server Profiles
262300

263301
Configuration is stored at `~/.herdux/config.json`.

README.pt-BR.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
Uma CLI rápida e interativa que remove a fricção dos workflows diários com bancos de dados locais, especialmente ao lidar com múltiplas instâncias e grandes datasets.
1414

15-
![Version](https://img.shields.io/badge/version-0.7.0-blue.svg)
15+
![Version](https://img.shields.io/badge/version-0.8.0-blue.svg)
1616
![License](https://img.shields.io/badge/license-MIT-green.svg)
1717
![Node](https://img.shields.io/badge/node-18%2B-43853d.svg)
1818
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-316192?style=flat&logo=postgresql&logoColor=white)
@@ -258,6 +258,44 @@ hdx docker stop pg-dev --remove # Para e remove o container
258258

259259
---
260260

261+
### `herdux cloud`
262+
263+
Gerencia arquivos de backup em cloud storage S3-compatible (AWS S3, Cloudflare R2, MinIO, DigitalOcean Spaces e outros).
264+
265+
```bash
266+
# Configurar
267+
hdx cloud config bucket meu-bucket
268+
hdx cloud config region us-east-1
269+
hdx cloud config access-key AKIAIO...
270+
hdx cloud config secret-key wJalrX...
271+
hdx cloud config endpoint https://account.r2.cloudflarestorage.com # opcional, para provedores nao-AWS
272+
273+
# Gerenciar backups no bucket
274+
hdx cloud list # Lista todos os arquivos de backup no bucket
275+
hdx cloud list --prefix backups/mydb/ # Filtra por prefixo
276+
hdx cloud download backups/mydb_2026-03-03.dump
277+
hdx cloud download backups/mydb_2026-03-03.dump -o /tmp/
278+
hdx cloud delete backups/mydb_2026-03-03.dump # Pede confirmacao
279+
hdx cloud delete backups/mydb_2026-03-03.dump --yes
280+
281+
# Backup direto para o S3
282+
hdx backup mydb --upload backups/ # Backup e upload para o prefixo backups/
283+
hdx backup mydb --upload # Backup e upload para a raiz do bucket
284+
285+
# Restore direto do S3
286+
hdx restore s3://meu-bucket/backups/mydb_2026-03-03.dump --db mydb
287+
```
288+
289+
As credenciais tambem podem ser fornecidas via variaveis de ambiente (recomendado para CI/producao):
290+
291+
```bash
292+
export AWS_ACCESS_KEY_ID=AKIAIO...
293+
export AWS_SECRET_ACCESS_KEY=wJalrX...
294+
export AWS_DEFAULT_REGION=us-east-1
295+
```
296+
297+
---
298+
261299
## Configuração e Perfis de Servidor
262300

263301
A configuração é armazenada em `~/.herdux/config.json`.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "herdux-cli",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"description": "Modern Database workflow CLI focused on developer experience, safety, and automation.",
55
"repository": {
66
"type": "git",
@@ -59,6 +59,8 @@
5959
"author": "Eduardo Zaniboni",
6060
"license": "MIT",
6161
"dependencies": {
62+
"@aws-sdk/client-s3": "^3.1000.0",
63+
"@aws-sdk/lib-storage": "^3.1000.0",
6264
"chalk": "^5.6.2",
6365
"commander": "^12.1.0",
6466
"execa": "^9.6.1",

0 commit comments

Comments
 (0)