Skip to content

Commit 4dc6315

Browse files
committed
docs: integrate CLI reference documentation into mdBook structure
- Move all CLI reference documentation from docs/cli-reference to docs/src/cli-reference - Add comprehensive CLI Command Reference section to SUMMARY.md - Include profile, smart, cloud, and enterprise command documentation - Copy detailed examples and configuration audit to CLI usage section - Successfully tested mdBook build with new structure
1 parent ecd5298 commit 4dc6315

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1866
-0
lines changed

docs/src/SUMMARY.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,63 @@
1212
- [Installation](./cli/installation.md)
1313
- [Docker Testing](./cli/docker.md)
1414
- [Configuration](./cli/configuration.md)
15+
- [Configuration Audit](./cli/configuration-audit.md)
1516
- [Commands](./cli/commands.md)
1617
- [Output Formats](./cli/output-formats.md)
1718
- [Examples](./cli/examples.md)
19+
- [Detailed Examples](./cli/examples-detailed.md)
20+
21+
# CLI Command Reference
22+
23+
- [Overview](./cli-reference/index.md)
24+
- [Profile Commands](./cli-reference/profile/README.md)
25+
- [list](./cli-reference/profile/list.md)
26+
- [get](./cli-reference/profile/get.md)
27+
- [set](./cli-reference/profile/set.md)
28+
- [remove](./cli-reference/profile/remove.md)
29+
- [default](./cli-reference/profile/default.md)
30+
31+
- [Smart Commands]()
32+
- [database](./cli-reference/smart/database.md)
33+
- [user](./cli-reference/smart/user.md)
34+
- [cluster](./cli-reference/smart/cluster.md)
35+
- [account](./cli-reference/smart/account.md)
36+
37+
- [Cloud Commands](./cli-reference/cloud/README.md)
38+
- [api](./cli-reference/cloud/api.md)
39+
- [subscription](./cli-reference/cloud/subscription.md)
40+
- [database](./cli-reference/cloud/database.md)
41+
- [user](./cli-reference/cloud/user.md)
42+
- [account](./cli-reference/cloud/account.md)
43+
- [backup](./cli-reference/cloud/backup.md)
44+
- [acl](./cli-reference/cloud/acl.md)
45+
- [api-key](./cli-reference/cloud/api-key.md)
46+
- [billing](./cli-reference/cloud/billing.md)
47+
- [cloud-account](./cli-reference/cloud/cloud-account.md)
48+
- [crdb](./cli-reference/cloud/crdb.md)
49+
- [logs](./cli-reference/cloud/logs.md)
50+
- [metrics](./cli-reference/cloud/metrics.md)
51+
- [peering](./cli-reference/cloud/peering.md)
52+
- [region](./cli-reference/cloud/region.md)
53+
- [sso](./cli-reference/cloud/sso.md)
54+
- [task](./cli-reference/cloud/task.md)
55+
- [transit-gateway](./cli-reference/cloud/transit-gateway.md)
56+
57+
- [Enterprise Commands](./cli-reference/enterprise/README.md)
58+
- [api](./cli-reference/enterprise/api.md)
59+
- [bootstrap](./cli-reference/enterprise/bootstrap.md)
60+
- [cluster](./cli-reference/enterprise/cluster.md)
61+
- [database](./cli-reference/enterprise/database.md)
62+
- [user](./cli-reference/enterprise/user.md)
63+
- [role](./cli-reference/enterprise/role.md)
64+
- [node](./cli-reference/enterprise/node.md)
65+
- [module](./cli-reference/enterprise/module.md)
66+
- [actions](./cli-reference/enterprise/actions.md)
67+
- [alert](./cli-reference/enterprise/alert.md)
68+
- [crdb](./cli-reference/enterprise/crdb.md)
69+
- [license](./cli-reference/enterprise/license.md)
70+
- [logs](./cli-reference/enterprise/logs.md)
71+
- [stats](./cli-reference/enterprise/stats.md)
1872

1973
# Workflows
2074
- [Cluster Bootstrap](./workflows/cluster-bootstrap.md)

docs/src/cli-reference/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# redisctl Command Reference
2+
3+
```
4+
Unified Redis CLI for Cloud and Enterprise
5+
6+
Usage: redisctl [OPTIONS] <COMMAND>
7+
8+
Commands:
9+
cloud Redis Cloud commands
10+
enterprise Redis Enterprise commands
11+
profile Profile management
12+
database Database operations (smart routing)
13+
cluster Cluster operations (smart routing)
14+
user User operations (smart routing)
15+
account Account operations (smart routing to Cloud subscriptions)
16+
help Print this message or the help of the given subcommand(s)
17+
18+
Options:
19+
-o, --output <OUTPUT> Output format [default: json] [possible values: json, yaml, table]
20+
-q, --query <QUERY> JMESPath query to filter output
21+
-p, --profile <PROFILE> Profile name to use (overrides REDISCTL_PROFILE env var)
22+
-d, --deployment <DEPLOYMENT> Deployment type (auto-detected from profile if not specified) [possible values: cloud, enterprise]
23+
-v, --verbose... Verbose logging
24+
-h, --help Print help
25+
-V, --version Print version
26+
```
27+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Redis Cloud Commands
2+
3+
```
4+
Redis Cloud commands
5+
6+
Usage: redisctl cloud <COMMAND>
7+
8+
Commands:
9+
api Raw API access
10+
subscription Subscription management
11+
database Database management
12+
account Account management
13+
user User management
14+
region Region information
15+
task Task monitoring
16+
acl ACL management
17+
peering VPC Peering management
18+
transit-gateway Transit Gateway management
19+
backup Backup management
20+
crdb Active-Active database management
21+
api-key API Keys management
22+
metrics Metrics and monitoring
23+
logs Logs and audit trails
24+
cloud-account Cloud account management
25+
fixed-plan Fixed plan management
26+
flexible-plan Flexible plan management
27+
private-service-connect Private Service Connect
28+
sso SSO/SAML management
29+
billing Billing and payment management
30+
help Print this message or the help of the given subcommand(s)
31+
32+
Options:
33+
-h, --help Print help
34+
```
35+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Cloud Account Commands
2+
3+
```
4+
Account management
5+
6+
Usage: redisctl cloud account <COMMAND>
7+
8+
Commands:
9+
list List accounts/subscriptions
10+
show Show account/subscription details
11+
info Show account information (different from show)
12+
owner Show account owner information
13+
users List users for this account
14+
payment-methods List payment methods
15+
help Print this message or the help of the given subcommand(s)
16+
17+
Options:
18+
-h, --help Print help
19+
```
20+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cloud ACL Commands
2+
3+
```
4+
ACL management
5+
6+
Usage: redisctl cloud acl <COMMAND>
7+
8+
Commands:
9+
list List ACL rules
10+
show Show ACL rule details
11+
create Create ACL rule
12+
update Update ACL rule
13+
delete Delete ACL rule
14+
help Print this message or the help of the given subcommand(s)
15+
16+
Options:
17+
-h, --help Print help
18+
```
19+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Cloud API Key Commands
2+
3+
```
4+
API Keys management
5+
6+
Usage: redisctl cloud api-key <COMMAND>
7+
8+
Commands:
9+
list List API keys
10+
show Show API key details
11+
create Create API key
12+
update Update API key
13+
delete Delete API key
14+
regenerate Regenerate API key
15+
enable Enable API key
16+
disable Disable API key
17+
help Print this message or the help of the given subcommand(s)
18+
19+
Options:
20+
-h, --help Print help
21+
```
22+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cloud API Commands
2+
3+
```
4+
Raw API access
5+
6+
Usage: redisctl cloud api <COMMAND>
7+
8+
Commands:
9+
GET Execute GET request
10+
POST Execute POST request
11+
PUT Execute PUT request
12+
PATCH Execute PATCH request
13+
DELETE Execute DELETE request
14+
help Print this message or the help of the given subcommand(s)
15+
16+
Options:
17+
-h, --help Print help
18+
```
19+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cloud Backup Commands
2+
3+
```
4+
Backup management
5+
6+
Usage: redisctl cloud backup <COMMAND>
7+
8+
Commands:
9+
list List backups
10+
show Show backup details
11+
create Create backup
12+
restore Restore from backup
13+
delete Delete backup
14+
help Print this message or the help of the given subcommand(s)
15+
16+
Options:
17+
-h, --help Print help
18+
```
19+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Cloud Billing Commands
2+
3+
```
4+
Billing and payment management
5+
6+
Usage: redisctl cloud billing <COMMAND>
7+
8+
Commands:
9+
info Get billing information
10+
invoice-list List invoices
11+
invoice-get Get invoice details
12+
invoice-download Download invoice PDF
13+
invoice-current Get current month invoice
14+
payment-method-list List payment methods
15+
payment-method-get Get payment method details
16+
payment-method-add Add payment method
17+
payment-method-update Update payment method
18+
payment-method-delete Delete payment method
19+
payment-method-default Set default payment method
20+
cost-breakdown Get cost breakdown
21+
usage Get usage report
22+
history Get billing history
23+
credits Get available credits
24+
promo-apply Apply promo code
25+
alert-list Get billing alerts
26+
alert-update Update billing alerts
27+
help Print this message or the help of the given subcommand(s)
28+
29+
Options:
30+
-h, --help Print help
31+
```
32+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cloud Provider Account Commands
2+
3+
```
4+
Cloud account management
5+
6+
Usage: redisctl cloud cloud-account <COMMAND>
7+
8+
Commands:
9+
list List cloud accounts
10+
show Show cloud account details
11+
create Create cloud account
12+
update Update cloud account
13+
delete Delete cloud account
14+
help Print this message or the help of the given subcommand(s)
15+
16+
Options:
17+
-h, --help Print help
18+
```
19+

0 commit comments

Comments
 (0)