-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tiup: add tiup-reference.md #5322
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9b0a480
tiup: add tiup-reference.md
TomShawn 3fa136c
clarify the default false value for the boolean type
TomShawn 746d883
Update tiup/tiup-reference.md
TomShawn a0d7084
Update tiup/tiup-reference.md
TomShawn e2a2c16
adjust order to make it consistent with other docs
TomShawn aeb2db8
Merge remote-tracking branch 'upstream/master' into tiup-referencesw1
TomShawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
title: TiUP Reference | ||
--- | ||
|
||
# TiUP Reference | ||
|
||
TiUP serves as the package manager of the TiDB ecosystem. It manages components in the TiDB ecosystem, such as TiDB, PD, and TiKV. | ||
|
||
## Syntax | ||
|
||
```shell | ||
tiup [flags] <command> [args...] # Executes a command | ||
# or | ||
tiup [flags] <component> [args...] # Runs a component | ||
``` | ||
|
||
You can use the `help` command to get the information of a specific command. The summary of each command shows its parameters and their usage. Mandatory parameters are shown in angle brackets, and optional parameters are shown in square brackets. | ||
|
||
`<command>` represents the command name. For the list of supported commands, see the [Command list](#command-list) below. `<component>` represents the component name. For the list of supported components, see the [Component list](#component-list) below. | ||
|
||
## Options | ||
|
||
### -B, --binary | ||
|
||
- Data type: `BOOLEAN` | ||
- 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. | ||
- If you enable this option, the specified binary file path is printed. | ||
|
||
- Executing `tiup -B/--binary <component>` will have the path of the latest stable installed `<component>` component printed. If `<component>` is not installed, an error is returned. | ||
- Executing `tiup -B/--binary <component>:<version>` will have the path of the installed `<component>` component's `<version>` printed. If this `<version>` is not printed, an error is returned. | ||
|
||
> **Note:** | ||
> | ||
> This option can only be used in commands of the `tiup [flags] <component> [args...]` format. | ||
|
||
### --binpath | ||
|
||
- Data type: `STRING` | ||
- Specifies the path of the component to be executed. When a component is executed, if you do not want to use the binary file in the TiUP mirror, you can add this option to specify using the binary file in a custom path. | ||
|
||
> **Note:** | ||
> | ||
> This option can only be used in commands of the `tiup [flags] <component> [args...]` format. | ||
|
||
### --skip-version-check | ||
|
||
> **Note:** | ||
> | ||
> This option is deprecated since v1.3.0. | ||
|
||
- Data type: `BOOLEAN` | ||
- 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. | ||
- Skips the validity check for version numbers. By default, the specified version number can only be the semantic version. | ||
|
||
### -T, --tag | ||
|
||
- Data type: `STRING` | ||
- Specifies a tag for the component to be started. Some components need to use disk storage during the execution, and TiUP will allocate a temporary storage directory for this execution. If you want TiUP to allocate a fixed directory, you can use `-T/--tag` to specify the name of the directory, so that the same batch of files can be read and written in multiple executions with the same tag. | ||
TomShawn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### -v, --version | ||
|
||
Prints the TiUP version. | ||
|
||
### --help | ||
|
||
Prints the help information. | ||
|
||
## Command list | ||
|
||
TiUP has multiple commands, and these commands have multiple sub-commands. For the specific commands and their detailed descriptions, click the corresponding links in list below: | ||
TomShawn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- [install](/tiup/tiup-command-install.md): Installs a component. | ||
- [list](/tiup/tiup-command-list.md): Shows the component list. | ||
- [uninstall](/tiup/tiup-command-uninstall.md): Uninstalls a component. | ||
- [update](/tiup/tiup-command-update.md): Updates the installed component. | ||
- [status](/tiup/tiup-command-status.md): Shows the running status of a component. | ||
- [clean](/tiup/tiup-command-clean.md): Cleans the data directory of a component. | ||
- [mirror](/tiup/tiup-command-mirror.md): Manages the mirror. | ||
- [telemetry](/tiup/tiup-command-telemetry.md): Enables or disables the telemetry. | ||
- [completion](/tiup/tiup-command-completion.md): Completes the TiUP command. | ||
- [env](/tiup/tiup-command-env.md): Shows the TiUP-related environment variables. | ||
- [help](/tiup/tiup-command-help.md): Shows the help information of a command or component. | ||
|
||
## Component list | ||
|
||
- [cluster](/tiup/tiup-component-cluster.md): Manages the TiDB cluster in a production environment. | ||
- [dm](/tiup/tiup-component-dm.md): Manages the TiDB Data Migration (DM) cluster in a production environment. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change the order of the list to keep it consistent with the form of other prs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in e2a2c16.