chore(dblab): add command

This commit is contained in:
Michele Cereda
2025-10-01 10:05:13 +02:00
parent ed035e83f9
commit 683df93354
2 changed files with 6 additions and 0 deletions

View File

@@ -63,6 +63,9 @@ dblab snapshot list
curl 'https://dblab.example.org:2345/snapshots' -H "Verification-Token: $(gopass show -o 'dblab')"
curl 'https://dblab.example.org:1234/api/snapshots' -H "Verification-Token: $(gopass show -o 'dblab')"
# Get the ID of the latest snapshot.
dblab snapshot list | jq -r 'max_by(.createdAt).id'
# Create clones
dblab clone create --id 'some-clone' --protected --username 'geppetto' --password 'pinocchio' --db-name 'puppetshop'
curl -X 'POST' 'https://dblab.example.org:1234/api/clone' -H "Verification-Token: $(gopass show -o 'dblab')" \