提交 be94330d 编写于 作者: D dingbo

docs: go and cli

上级 a3696a24
...@@ -33,21 +33,21 @@ Run this command in your terminal to save DSN(data source name) as variable: ...@@ -33,21 +33,21 @@ Run this command in your terminal to save DSN(data source name) as variable:
<TabItem value="bash" label="Bash"> <TabItem value="bash" label="Bash">
```bash ```bash
export TDENGINE_GO_DSN=<DSN> export TDENGINE_GO_DSN=<goDSN>
``` ```
</TabItem> </TabItem>
<TabItem value="cmd" label="CMD"> <TabItem value="cmd" label="CMD">
```bash ```bash
set TDENGINE_GO_DSN="<DSN>" set TDENGINE_GO_DSN="<goDSN>"
``` ```
</TabItem> </TabItem>
<TabItem value="powershell" label="Powershell"> <TabItem value="powershell" label="Powershell">
```powershell ```powershell
$env:TDENGINE_GO_DSN="<DSN>" $env:TDENGINE_GO_DSN="<goDSN>"
``` ```
</TabItem> </TabItem>
...@@ -56,8 +56,8 @@ $env:TDENGINE_GO_DSN="<DSN>" ...@@ -56,8 +56,8 @@ $env:TDENGINE_GO_DSN="<DSN>"
<!-- exclude --> <!-- exclude -->
:::note :::note
Replace <DSN\> with the real value, the format should be `https(<cloud_host>)/?token=<token>`. Replace <goDSN\> with the real value, the format should be `https(<cloud_host>)/?token=<token>`.
To obtain the value of `DSN`, please log in [TDengine Cloud](https://cloud.tdengine.com) and click "Connector" and then select "Go". To obtain the value of `goDSN`, please log in [TDengine Cloud](https://cloud.tdengine.com) and click "Connector" and then select "Go".
::: :::
<!-- exclude-end --> <!-- exclude-end -->
......
...@@ -18,7 +18,7 @@ To run TDengine CLI to access TDengine cloud, please install [TDengine client in ...@@ -18,7 +18,7 @@ To run TDengine CLI to access TDengine cloud, please install [TDengine client in
Run this command in your Linux terminal to save your URL and token as variable: Run this command in your Linux terminal to save your URL and token as variable:
``` ```bash
export TDENGINE_CLOUD_DSN=<DSN> export TDENGINE_CLOUD_DSN=<DSN>
``` ```
...@@ -27,8 +27,8 @@ export TDENGINE_CLOUD_DSN=<DSN> ...@@ -27,8 +27,8 @@ export TDENGINE_CLOUD_DSN=<DSN>
Run this command in your Windows terminal to save your URL and token as variable: Run this command in your Windows terminal to save your URL and token as variable:
``` ```bash
set TDENGINE_CLOUD_DSN=<DSN> set TDENGINE_CLOUD_DSN="<DSN>"
``` ```
</TabItem> </TabItem>
...@@ -36,7 +36,7 @@ set TDENGINE_CLOUD_DSN=<DSN> ...@@ -36,7 +36,7 @@ set TDENGINE_CLOUD_DSN=<DSN>
Run this command in your Mac terminal to save your URL and token as variable: Run this command in your Mac terminal to save your URL and token as variable:
``` ```bash
export TDENGINE_CLOUD_DSN=<DSN> export TDENGINE_CLOUD_DSN=<DSN>
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册