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

@@ -56,6 +56,9 @@ dblab config switch 'prod'
# Fetch the status of the Engine's instance.
dblab instance status
# Get the ID of the latest snapshot.
dblab snapshot list | jq -r 'max_by(.createdAt).id'
# Create clones.
dblab clone create --username 'dblab_user_1' --password 'secret_password' --id 'my_first_clone'
curl -X 'POST' 'https://dblab.instance.fqdn/api/clone' -H 'Verification-Token: verification-token-here' \

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')" \