-
Notifications
You must be signed in to change notification settings - Fork 687
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
TiDB Cloud CLI New #17056
Merged
Merged
TiDB Cloud CLI New #17056
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
72b80dc
new cli
shiyuhang0 d628425
remobe br
shiyuhang0 51709cc
Apply suggestions from code review
qiancai 3b2b3f8
refine descriptions
qiancai 3ea5f47
update wording and format
qiancai 0a409b2
fix typo
qiancai e24ad6e
fix accoridng to the review
shiyuhang0 1eafa2c
refine the new changes
qiancai 0cfac7d
add import
shiyuhang0 3f25438
use force in export download
shiyuhang0 80e3104
update get started
shiyuhang0 fd514e3
polish
shiyuhang0 72d72b3
Apply suggestions from code review
qiancai 5609a97
Update get-started-with-cli.md
qiancai 939ae3f
polish according to the review
shiyuhang0 c1bfe25
add alias for serverless
shiyuhang0 64c5af7
fix dead link
shiyuhang0 55a492c
Apply suggestions from code review
qiancai 26a1ee9
Indicate CLI is in beta
qiancai dfc49ae
fix building errors
qiancai d04925d
regions -> region
qiancai 8e8f4dd
Update tidb-cloud/ticloud-serverless-export-download.md
qiancai 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: ticloud ai | ||
summary: The reference of `ticloud ai`. | ||
--- | ||
|
||
# ticloud ai | ||
|
||
Chat with TiDB Bot: | ||
|
||
```shell | ||
ticloud ai [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
Chat with TiDB Bot in interactive mode: | ||
|
||
```shell | ||
ticloud serverless delete | ||
``` | ||
|
||
Chat with TiDB Bot in non-interactive mode: | ||
|
||
```shell | ||
ticloud ai -q "How to create a cluster?" | ||
``` | ||
|
||
## Flags | ||
|
||
In non-interactive mode, you need to manually enter the required flags. In interactive mode, you can just follow CLI prompts to fill them in. | ||
|
||
| Flag | Description | Required | Note | | ||
|--------------------|-----------------------------------|----------|------------------------------------------------------| | ||
| -q, --query string | Specifies your query to TiDB Bot. | Yes | Only works in non-interactive mode. | | ||
| -h, --help | Shows help information for this command. | No | Works in both non-interactive and interactive modes. | | ||
|
||
## Inherited flags | ||
|
||
| Flag | Description | Required | Note | | ||
|----------------------|--------------------------------------------------------------------------------------------|----------|------------------------------------------------------------------------------------------------------------------| | ||
| --no-color | Disables color in output. | No | Only works in non-interactive mode. In interactive mode, disabling color might not work with some UI components. | | ||
| -P, --profile string | Specifies the active [user profile](/tidb-cloud/cli-reference.md#user-profile) used in this command. | No | Works in both non-interactive and interactive modes. | | ||
| -D, --debug | Enables debug mode. | No | Works in both non-interactive and interactive modes. | | ||
|
||
## Feedback | ||
|
||
If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an [issue](https://github.com/tidbcloud/tidbcloud-cli/issues/new/choose). Also, we welcome any contributions. |
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,47 @@ | ||
--- | ||
title: ticloud auth login | ||
summary: The reference of `ticloud auth login`. | ||
--- | ||
|
||
# ticloud auth login | ||
|
||
Authenticate with TiDB Cloud: | ||
|
||
```shell | ||
ticloud auth login [flags] | ||
``` | ||
|
||
## Examples | ||
|
||
To log into TiDB Cloud: | ||
|
||
```shell | ||
ticloud auth login | ||
``` | ||
|
||
To log into TiDB Cloud with insecure storage: | ||
|
||
```shell | ||
ticloud auth login --insecure-storage | ||
``` | ||
|
||
## Flags | ||
|
||
In non-interactive mode, you need to manually enter the required flags. In interactive mode, you can just follow CLI prompts to fill them in. | ||
|
||
| Flag | Description | Required | Note | | ||
|--------------------|---------------------------------------------------------------------------|----------|------------------------------------------------------| | ||
| --insecure-storage | Saves authentication credentials in plain text instead of credential store. | No | Works in both non-interactive and interactive modes. | | ||
| -h, --help | Shows help information for this command. | No | Works in both non-interactive and interactive modes. | | ||
|
||
## Inherited flags | ||
|
||
| Flag | Description | Required | Note | | ||
|----------------------|--------------------------------------------------------------------------------------------|----------|------------------------------------------------------------------------------------------------------------------| | ||
| --no-color | Disables color in output. | No | Only works in non-interactive mode. In interactive mode, disabling color might not work with some UI components. | | ||
| -P, --profile string | Specifies the active [user profile](/tidb-cloud/cli-reference.md#user-profile) used in this command. | No | Works in both non-interactive and interactive modes. | | ||
| -D, --debug | Enables debug mode. | No | Works in both non-interactive and interactive modes. | | ||
|
||
## Feedback | ||
|
||
If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an [issue](https://github.com/tidbcloud/tidbcloud-cli/issues/new/choose). Also, we welcome any contributions. |
Oops, something went wrong.
Oops, something went wrong.
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.
preview: https://pingcap-docsite-preview-git-pr-qiancais-projects.vercel.app/tidbcloud/cli-reference