Skip to content

Commit 31ed0aa

Browse files
authored
Merge pull request #3219 from replicatedhq/update-cli-docs-v0.102.0-2025-04-30-222350
Update Replicated CLI docs for v0.102.0
2 parents e2739ff + 731da6b commit 31ed0aa

7 files changed

+37
-23
lines changed

docs/reference/replicated-cli-cluster-create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Create test clusters.
66

77
The 'cluster create' command provisions a new test cluster with the specified Kubernetes distribution and configuration. You can customize the cluster's size, version, node groups, disk space, IP family, and other parameters.
88

9-
This command supports creating clusters on multiple Kubernetes distributions, including setting up node groups with different instance types and counts. You can also specify a TTL (Time-To-Live) to automatically terminate the cluster after a set duration.
9+
This command supports creating clusters on multiple Kubernetes distributions, including setting up node groups with different instance types and counts. You can also specify a TTL (Time-To-Live) to automatically terminate the cluster after a set duration. If no TTL is specified, the default TTL is 1 hour.
1010

1111
Use the '--dry-run' flag to simulate the creation process and get an estimated cost without actually provisioning the cluster.
1212

docs/reference/replicated-cli-cluster-port-expose.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ replicated cluster port expose CLUSTER_ID --port PORT [flags]
2222
# Expose port 8080 with HTTPS protocol and wildcard DNS
2323
replicated cluster port expose CLUSTER_ID --port 8080 --protocol https --wildcard
2424
25-
# Expose port 3000 with HTTP protocol
26-
replicated cluster port expose CLUSTER_ID --port 3000 --protocol http
25+
# Expose port 30000 with HTTP protocol
26+
replicated cluster port expose CLUSTER_ID --port 30000 --protocol http
2727
2828
# Expose port 8080 with multiple protocols
2929
replicated cluster port expose CLUSTER_ID --port 8080 --protocol http,https

docs/reference/replicated-cli-cluster-update-ttl.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Update TTL for a test cluster.
44

55
### Synopsis
66

7-
The 'ttl' command allows you to update the Time-To-Live (TTL) of a test cluster. The TTL represents the duration for which the cluster will remain active before it is automatically terminated. The duration starts from the moment the cluster becomes active. You must provide a valid duration, with a maximum limit of 48 hours.
7+
The 'ttl' command allows you to update the Time-To-Live (TTL) of a test cluster. The TTL represents the duration for which the cluster will remain active before it is automatically terminated. The duration starts from the moment the cluster becomes active. You must provide a valid duration, with a maximum limit of 48 hours. If no TTL is specified, the default TTL is 1 hour.
88

99
```
1010
replicated cluster update ttl [ID] [flags]

docs/reference/replicated-cli-vm-create.mdx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Create one or more test VMs with specified distribution, version, and configurat
66

77
Create one or more test VMs with a specified distribution, version, and a variety of customizable configuration options.
88

9-
This command allows you to provision VMs with different distributions (e.g., Ubuntu, RHEL), versions, instance types, and more. You can set the number of VMs to create, disk size, and specify the network to use. If no network is provided, a new network will be created automatically. You can also assign tags to your VMs and use a TTL (Time-To-Live) to define how long the VMs should live.
9+
This command allows you to provision VMs with different distributions (e.g., Ubuntu, RHEL), versions, instance types, and more. You can set the number of VMs to create, disk size, and specify the network to use. If no network is provided, a new network will be created automatically. You can also assign tags to your VMs and use a TTL (Time-To-Live) to define how long the VMs should live. If no TTL is specified, the default TTL is 1 hour.
1010

1111
By default, the command provisions one VM, but you can customize the number of VMs to create by using the "--count" flag. Additionally, you can use the "--dry-run" flag to simulate the creation without actually provisioning the VMs.
1212

@@ -27,24 +27,31 @@ replicated vm create --distribution ubuntu --version 22.04 --count 3
2727
2828
# Create 5 Ubuntu VMs with a custom instance type and disk size
2929
replicated vm create --distribution ubuntu --version 20.04 --count 5 --instance-type r1.medium --disk 100
30+
31+
# Create a VM with an SSH public key
32+
replicated vm create --distribution ubuntu --version 20.04 --ssh-public-key ~/.ssh/id_rsa.pub
33+
34+
# Create a VM with multiple SSH public keys
35+
replicated vm create --distribution ubuntu --version 20.04 --ssh-public-key ~/.ssh/id_rsa.pub --ssh-public-key ~/.ssh/id_ed25519.pub
3036
```
3137

3238
### Options
3339

3440
```
35-
--count int Number of matching VMs to create (default 1)
36-
--disk int Disk Size (GiB) to request per node (default 50)
37-
--distribution string Distribution of the VM to provision
38-
--dry-run Dry run
39-
-h, --help help for create
40-
--instance-type string The type of instance to use (e.g. r1.medium)
41-
--name string VM name (defaults to random name)
42-
--network string The network to use for the VM(s). If not supplied, create a new network
43-
-o, --output string The output format to use. One of: json|table|wide (default "table")
44-
--tag stringArray Tag to apply to the VM (key=value format, can be specified multiple times)
45-
--ttl string VM TTL (duration, max 48h)
46-
--version string Version to provision (format is distribution dependent)
47-
--wait duration Wait duration for VM(s) to be ready (leave empty to not wait)
41+
--count int Number of matching VMs to create (default 1)
42+
--disk int Disk Size (GiB) to request per node (default 50)
43+
--distribution string Distribution of the VM to provision
44+
--dry-run Dry run
45+
-h, --help help for create
46+
--instance-type string The type of instance to use (e.g. r1.medium)
47+
--name string VM name (defaults to random name)
48+
--network string The network to use for the VM(s). If not supplied, create a new network
49+
-o, --output string The output format to use. One of: json|table|wide (default "table")
50+
--ssh-public-key stringArray Path to SSH public key file to add to the VM (can be specified multiple times)
51+
--tag stringArray Tag to apply to the VM (key=value format, can be specified multiple times)
52+
--ttl string VM TTL (duration, max 48h)
53+
--version string Version to provision (format is distribution dependent)
54+
--wait duration Wait duration for VM(s) to be ready (leave empty to not wait)
4855
```
4956

5057
### Options inherited from parent commands

docs/reference/replicated-cli-vm-port-expose.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ replicated vm port expose VM_ID --port PORT [flags]
1818
# Expose port 8080 with HTTPS protocol
1919
replicated vm port expose VM_ID --port 8080 --protocol https
2020
21-
# Expose port 3000 with HTTP protocol
22-
replicated vm port expose VM_ID --port 3000 --protocol http
21+
# Expose port 30000 with HTTP protocol
22+
replicated vm port expose VM_ID --port 30000 --protocol http
2323
2424
# Expose port 8080 with multiple protocols
2525
replicated vm port expose VM_ID --port 8080 --protocol http,https

docs/reference/replicated-cli-vm-ssh-endpoint.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ Get the SSH endpoint and port of a VM.
88

99
The output will be in the format: hostname:port
1010

11+
You can identify the VM either by its unique ID or by its name.
12+
13+
Note: SSH endpoints can only be retrieved from VMs in the "running" state.
14+
1115
```
12-
replicated vm ssh-endpoint VM_ID [flags]
16+
replicated vm ssh-endpoint VM_ID_OR_NAME [flags]
1317
```
1418

1519
### Examples
1620

1721
```
1822
# Get SSH endpoint for a specific VM by ID
19-
replicated vm ssh-endpoint <id>
23+
replicated vm ssh-endpoint aaaaa11
24+
25+
# Get SSH endpoint for a specific VM by name
26+
replicated vm ssh-endpoint my-test-vm
2027
```
2128

2229
### Options

docs/reference/replicated-cli-vm-update-ttl.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Update TTL for a test VM.
66

77
The 'ttl' command allows you to update the Time to Live (TTL) for a test VM. This command modifies the lifespan of a running VM by updating its TTL, which is a duration starting from the moment the VM is provisioned.
88

9-
The TTL specifies how long the VM will run before it is automatically terminated. You can specify a duration up to a maximum of 48 hours.
9+
The TTL specifies how long the VM will run before it is automatically terminated. You can specify a duration up to a maximum of 48 hours. If no TTL is specified, the default TTL is 1 hour.
1010

1111
The command accepts a VM ID as an argument and requires the '--ttl' flag to specify the new TTL value.
1212

0 commit comments

Comments
 (0)