Skip to content

Commit fd7fe80

Browse files
TomShawnti-srebot
authored andcommitted
cherry pick #5322 to release-4.0
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
1 parent 04535c0 commit fd7fe80

15 files changed

+121
-33
lines changed

tiup/tiup-command-list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ tiup list [component] [flags]
2020

2121
- Displays all components. By default, TiUP does not show hidden components.
2222
- Data type: `BOOLEAN`
23-
- Default: false
23+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2424

2525
### --installed
2626

2727
- Only displays components and versions that have been installed.
2828
- Data type: `BOOLEAN`
29-
- Default: false
29+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3030

3131
### --verbose
3232

3333
- Displays installed component versions in the components list.
3434
- Data type: `BOOLEAN`
35-
- Default: false
35+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3636

3737
## Outputs
3838

tiup/tiup-command-mirror-clone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tiup mirror clone <target-dir> [global version] [flags]
2121

2222
- Whether to clone the whole mirror. If this option is set, other options becomes ignored and TiUP completely clones all components of all versions from the targeted mirror.
2323
- Data type: `BOOLEAN`
24-
- Default: false
24+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2525

2626
### -a, --arch
2727

@@ -39,7 +39,7 @@ tiup mirror clone <target-dir> [global version] [flags]
3939

4040
- Whether to only match the prefix of versions. By default, TiUP downloads a component version when it is strictly matched. If this option is set, TiUP also downloads component versions of which prefixes are matched.
4141
- Data type: `BOOLEAN`
42-
- Default: false
42+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4343

4444
### --{component}
4545

tiup/tiup-command-mirror-genkey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ tiup mirror genkey [flags]
3535
- Shows the corresponding public key of the private key specified in the option `-n/--name`.
3636
- TiUP does not create a new private key when `-p/--public` is specified. If the private key specified in `-n/--name` does not exist, TiUP returns an error.
3737
- Data type: `BOOLEAN`
38-
- Default: false
38+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3939

4040
### --save
4141

4242
- Saves the information of the public key as a file in the current directory. The file name is `{hash-prefix}-public.json`. `hash-prefix` is the first 16 bits of the key ID.
4343
- Data type: `BOOLEAN`
44-
- Default: false
44+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4545

4646
## Outputs
4747

tiup/tiup-command-mirror-publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The meaning of each parameter is as follows:
7373

7474
- Controls whether the component can run standalone. This option is currently **NOT available**.
7575
- Data type: `BOOLEAN`
76-
- Default: false
76+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
7777

7878
## Outputs
7979

tiup/tiup-command-uninstall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ tiup uninstall <component1>:<version> [component2...N] [flags]
2222

2323
- Uninstalls all installed versions of the specified component(s). You must use this option when `<version>` is omitted.
2424
- Data type: `BOOLEAN`
25-
- Default: `false`
25+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2626

2727
### --self
2828

2929
- Uninstalls TiUP itself. When this option is used, all data downloaded from the mirror is deleted, but the data generated by TiUP and its components is retained. The data is stored in the directory specified by the `TIUP_HOME` environment variable. If `TIUP_HOME` is not set, the default value is `~/.tiup/`.
3030
- Data type: `BOOLEAN`
31-
- Default: `false`
31+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3232

3333
## Outputs
3434

tiup/tiup-command-update.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@ The update operation does not delete the old version. You can still specify usin
2424

2525
- If no component is specified, this option must be specified.
2626
- Data type: `BOOLEAN`
27-
- Default: `false`
27+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2828

2929
### --force
3030

3131
- If the specified version of the component is already installed, the update operation is skipped by default. Specifying this option will have the installed version forcibly updated.
3232
- Data type: `BOOLEAN`
33-
- Default: `false`
33+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3434

3535
### --nightly
3636

3737
- Updates the specified components to the nightly version. The `tiup update` command with this option is equivalent to the `tiup update <component>:nightly` command.
3838
- Data type: `BOOLEAN`
39-
- Default: `false`
39+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4040

4141
### --self
4242

4343
- Updates TiUP itself.
4444
- Data type: `BOOLEAN`
45-
- Default: `false`
45+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4646

4747
## Outputs
4848

tiup/tiup-component-cluster-audit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tiup cluster audit [audit-id] [flags]
2121

2222
- Prints the help information.
2323
- Data type: `Boolean`
24-
- Default: false
24+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2525

2626
## Outputs
2727

tiup/tiup-component-cluster-clean.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tiup cluster clean <cluster-name> [flags]
2424

2525
- Cleans data and the log at the same time. It is equivalent to specifying `--data` and `--log` at the same time.
2626
- Data type: `BOOLEAN`
27-
- Default: false
27+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2828
- If it is not specified, you must specify at lease one of the following options:
2929
- --data: Cleans data
3030
- --log: Cleans the log
@@ -33,13 +33,13 @@ tiup cluster clean <cluster-name> [flags]
3333

3434
- Cleans data. If neither of it nor `--all` is specified, data will not be cleaned.
3535
- Data type: `BOOLEAN`
36-
- Default: false
36+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3737

3838
### --log
3939

4040
- Cleans the log. If neither of it nor `--all` is specified, the log will not be cleaned.
4141
- Data type: `BOOLEAN`
42-
- Default: false
42+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4343

4444
### --ignore-node
4545

@@ -57,7 +57,7 @@ tiup cluster clean <cluster-name> [flags]
5757

5858
- Prints help information.
5959
- Data type: `BOOLEAN`
60-
- Default: false
60+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
6161

6262
## Output
6363

tiup/tiup-component-cluster-deploy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
3434

3535
- Specifies the password used to connect to the target machine. Do not use this option with `-i/--identity_file` at the same time.
3636
- Data type: `BOOLEAN`
37-
- Default: false
37+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
3838

3939
### --ignore-config-check
4040

4141
- This option is used to skip the configuration check. After the binary files of components are deployed, the configurations of TiDB, TiKV, and PD components are checked using `<binary> --config-check <config-file>`. `<binary>` is the path of the deployed binary file. `<config-file>` is the configuration file generated based on the user configuration.
42-
- Data type: `BOOLEAN`
42+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4343
- Default: false
4444

4545
### --no-labels
@@ -48,19 +48,19 @@ tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
4848
- When two or more TiKV nodes are deployed on the same physical machine, a risk exists: PD cannot learn the cluster topology, so PD might schedule multiple replicas of a Region to different TiKV nodes on one physical machine, which makes this physical machine a single point. To avoid this risk, you can use labels to tell PD not to schedule the same Region to the same machine. See [Schedule Replicas by Topology Labels](/schedule-replicas-by-topology-labels.md) for label configuration.
4949
- For the test environment, this risk might matter and you can use `--no-labels` to skip the check.
5050
- Data type: `BOOLEAN`
51-
- Default: false
51+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
5252

5353
### --skip-create-user
5454

5555
- During the cluster deployment, tiup-cluster checks whether the specified user name in the topology file exists or not. If not, it creates one. To skip this check, you can use the `--skip-create-user` option.
5656
- Data type: `BOOLEAN`
57-
- Default: false
57+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
5858

5959
### -h, --help
6060

6161
- Prints help information.
6262
- Data type: `BOOLEAN`
63-
- Default: false
63+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
6464

6565
## Output
6666

tiup/tiup-component-cluster-destroy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tiup cluster destroy <cluster-name> [flags]
2424

2525
- In some cases, some nodes in the cluster have been down, making it impossible to connect to the node through SSH for operation. At this time, you can use the `--force` option to ignore these errors.
2626
- Data type: `Boolean`
27-
- Default: false
27+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
2828

2929
### --retain-node-data
3030

@@ -42,7 +42,7 @@ tiup cluster destroy <cluster-name> [flags]
4242

4343
- Prints the help information.
4444
- Data type: `Boolean`
45-
- Default: false
45+
- This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.
4646

4747
## Output
4848

0 commit comments

Comments
 (0)