Skip to content

Commit a496b70

Browse files
committed
feat: improve VHS demos with realistic mock output
- Quick-start demo now shows full workflow: profile creation, listings, enterprise/cloud commands, API calls, and JMESPath - Profile management demo shows clean, realistic profile names and output - Fixed all command syntax errors (--deployment vs --deployment-type) - Mock output shows realistic but clean data for better demo experience - Enterprise demo uses correct 'cluster get' command
1 parent 5903871 commit a496b70

File tree

5 files changed

+91
-27
lines changed

5 files changed

+91
-27
lines changed

vhs/enterprise-demo.tape

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Enter
2929

3030
Type "# Get cluster information"
3131
Enter
32-
Type "redisctl enterprise cluster info -o table"
32+
Type "redisctl enterprise cluster get -o table"
3333
Enter
3434
Sleep 2.5s
3535
Enter

vhs/img/profile-management.gif

-2.33 MB
Loading

vhs/img/quick-start.gif

3 MB
Loading

vhs/profile-management.tape

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,62 +18,94 @@ Type "# List existing profiles"
1818
Enter
1919
Type "redisctl profile list"
2020
Enter
21+
Type "NAME TYPE DETAILS"
22+
Enter
23+
Type "----------- ------------ ------------------------------"
24+
Enter
25+
Type "production cloud URL: https://api.redislabs.com/v1"
26+
Enter
27+
Type "staging cloud URL: https://api.redislabs.com/v1"
28+
Enter
29+
Type "local enterprise URL: https://localhost:9443 (insecure)"
30+
Enter
2131
Sleep 2s
2232
Enter
2333

24-
Type "# Add a Redis Cloud profile with environment variables"
34+
Type "# Add a new Redis Cloud profile with environment variables"
2535
Enter
26-
Type 'redisctl profile set cloud-prod \'
36+
Type 'redisctl profile set development \'
2737
Enter
28-
Type ' --deployment-type cloud \'
38+
Type ' --deployment cloud \'
2939
Enter
3040
Type ' --api-key "${REDIS_CLOUD_KEY}" \'
3141
Enter
3242
Type ' --api-secret "${REDIS_CLOUD_SECRET}"'
3343
Enter
44+
Type "Profile 'development' saved successfully"
45+
Enter
3446
Sleep 2s
3547
Enter
3648

37-
Type "# Add a Redis Enterprise profile for local testing"
49+
Type "# Add a Redis Enterprise profile for testing"
3850
Enter
39-
Type 'redisctl profile set enterprise-local \'
51+
Type 'redisctl profile set test-cluster \'
4052
Enter
41-
Type ' --deployment-type enterprise \'
53+
Type ' --deployment enterprise \'
4254
Enter
43-
Type ' --url "https://localhost:9443" \'
55+
Type ' --url "https://test.redis.local:9443" \'
4456
Enter
4557
Type ' --username "[email protected]" \'
4658
Enter
47-
Type ' --password "Redis123!" \'
59+
Type ' --password "${REDIS_PASSWORD}" \'
4860
Enter
4961
Type ' --insecure'
5062
Enter
63+
Type "Profile 'test-cluster' saved successfully"
64+
Enter
5165
Sleep 2s
5266
Enter
5367

5468
Type "# View a specific profile"
5569
Enter
56-
Type "redisctl profile get enterprise-local"
70+
Type "redisctl profile get development"
71+
Enter
72+
Type "Profile: development"
73+
Enter
74+
Type "Type: cloud"
75+
Enter
76+
Type "API URL: https://api.redislabs.com/v1"
77+
Enter
78+
Type "API Key: ****KEY (from environment)"
5779
Enter
5880
Sleep 2s
5981
Enter
6082

61-
Type "# Set a default profile"
83+
Type "# Set default profile"
84+
Enter
85+
Type "redisctl profile default production"
6286
Enter
63-
Type "redisctl profile default enterprise-local"
87+
Type "Default profile set to: production"
6488
Enter
6589
Sleep 1.5s
6690
Enter
6791

6892
Type "# Test authentication"
6993
Enter
70-
Type "redisctl auth test --profile enterprise-local"
94+
Type "redisctl auth test --profile production"
95+
Enter
96+
Type "✓ Authentication successful for profile 'production'"
97+
Enter
98+
Type " Account ID: 12345"
99+
Enter
100+
Type " Account Name: ACME Corp"
71101
Enter
72102
Sleep 2s
73103
Enter
74104

75105
Type "# Remove a profile"
76106
Enter
77-
Type "redisctl profile remove cloud-dev"
107+
Type "redisctl profile remove test-cluster"
108+
Enter
109+
Type "Profile 'test-cluster' removed successfully"
78110
Enter
79111
Sleep 1.5s

vhs/quick-start.tape

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Output img/quick-start.gif
44
Set FontSize 16
5-
Set Width 1000
6-
Set Height 600
5+
Set Width 1100
6+
Set Height 650
77
Set Theme "Catppuccin Mocha"
88
Set Padding 15
99
Set TypingSpeed 40ms
@@ -14,37 +14,69 @@ Enter
1414
Sleep 1s
1515
Enter
1616

17-
Type "# Check the version"
17+
Type "# Create a Redis Cloud profile"
1818
Enter
19-
Type "redisctl --version"
19+
Type "redisctl profile set staging --deployment cloud --api-key KEY123 --api-secret SECRET456"
2020
Enter
2121
Sleep 1.5s
2222
Enter
2323

24-
Type "# Set up your first profile"
24+
Type "# List all profiles"
2525
Enter
26-
Type "redisctl profile set my-cloud --deployment-type cloud"
26+
Type "redisctl profile list"
2727
Enter
28-
Sleep 1.5s
28+
Type "NAME TYPE DETAILS"
29+
Enter
30+
Type "----------- ------------ ------------------------------"
31+
Enter
32+
Type "production cloud URL: https://api.redislabs.com/v1"
33+
Enter
34+
Type "staging cloud URL: https://api.redislabs.com/v1"
35+
Enter
36+
Type "local enterprise URL: https://localhost:9443 (insecure)"
37+
Enter
38+
Sleep 2s
2939
Enter
3040

31-
Type "# List configured profiles"
41+
Type "# List Redis Enterprise Redis Cloud regionsinfo"
3242
Enter
33-
Type "redisctl profile list"
43+
Type "redisctl cloud region listget --profile local -o table"
44+
Enter
45+
Type "NAME VERSION STATUS NODES"
46+
Enter
47+
Type "------------ ------- ------ -----"
48+
Enter
49+
Type "redis-local 7.2.4 active 3"
3450
Enter
3551
Sleep 2s
3652
Enter
3753

38-
Type "# Get cluster information"
54+
Type "# Use directRedis APICloud accesssubscriptions"
55+
Enter
56+
Type "redisctl cloud subscription list --profile staging -o table"
57+
Enter
58+
Type "ID NAME STATUS DATABASES"
59+
Enter
60+
Type "------ ---------------- ------ ---------"
3961
Enter
40-
Type "redisctl enterprise cluster info -o table"
62+
Type "12345 Production-US active 2"
63+
Enter
64+
Type "67890 Staging-EU active 1"
4165
Enter
4266
Sleep 2s
4367
Enter
4468

45-
Type "# List databases with JSON output"
69+
Type "# Direct API call with JMESPath filtering"
70+
Enter
71+
Type "redisctl api cloud get /subscriptions --profile staging -o json | jq '.[0] | {id, name}'"
72+
Enter
73+
Type "{"
74+
Enter
75+
Type ' "id": 12345,'
76+
Enter
77+
Type ' "name": "Production-US"'
4678
Enter
47-
Type "redisctl enterprise database list -o json | jq '.[0].name'"
79+
Type "}"
4880
Enter
4981
Sleep 2s
5082

0 commit comments

Comments
 (0)