@@ -11,36 +11,33 @@ The TDengine command-line interface (hereafter referred to as `TDengine CLI`) is
...
@@ -11,36 +11,33 @@ The TDengine command-line interface (hereafter referred to as `TDengine CLI`) is
## Installation
## Installation
To run TDengine CLI to access TDengine cloud, please install [TDengine client installation package](https://www.taosdata.com/assets-download/TDengine-client-2.6.0.2-Linux-x64.tar.gz) first.
To run TDengine CLI to access TDengine cloud, please install [TDengine client installation package](https://www.taosdata.com/assets-download/TDengine-client-2.6.0.4-Linux-x64.tar.gz) first.
<TabsdefaultValue="ConfigOnLinux"groupId="sys">
<TabsdefaultValue="ConfigOnLinux"groupId="sys">
<TabItemvalue="ConfigOnLinux"label="Config on Linux">
<TabItemvalue="ConfigOnLinux"label="Config on Linux">
Run this command in your Linux terminal to save your URL and token as variables:
Run this command in your Linux terminal to save your URL and token as variable:
```
```
export TDENGINE_CLOUD_URL=<URL>
export TDENGINE_CLOUD_DSN=<DSN>
export TDENGINE_CLOUD_TOKEN=<token>
```
```
</TabItem>
</TabItem>
<TabItemvalue="ConfigOnWindows"label="Config on Windows (coming soon)">
<TabItemvalue="ConfigOnWindows"label="Config on Windows (coming soon)">
Run this command in your Windows terminal to save your URL and token as variables:
Run this command in your Windows terminal to save your URL and token as variable:
```
```
set TDENGINE_CLOUD_URL=<URL>
set TDENGINE_CLOUD_DSN=<DSN>
set TDENGINE_CLOUD_TOKEN=<token>
```
```
</TabItem>
</TabItem>
<TabItemvalue="ConfigOnMac"label="Config on Mac (coming soon)"groupId="sys">
<TabItemvalue="ConfigOnMac"label="Config on Mac (coming soon)"groupId="sys">
Run this command in your Mac terminal to save your URL and token as variables:
Run this command in your Mac terminal to save your URL and token as variable:
If you did not set environment variable for a TDengine Cloud instance, or you want to access other TDengine Cloud instances rather than the instance you already set the environment variable, you can use `taos -E <DSN>` as below.
```
taos -E $TDENGINE_CLOUD_DSN
```
```
</TabItem>
</TabItem>
<TabItemvalue="ConnectOnWindows"label="Connect on Windows (coming soon)">
<TabItemvalue="ConnectOnWindows"label="Connect on Windows (coming soon)">
To access the TDengine Cloud, you can execute below command from a Windows terminal.
To access the TDengine Cloud, you can execute `taos` if you already set the environment variable.
If you did not set environment variable for a TDengine Cloud instance, or you want to access other TDengine Cloud instances rather than the instance you already set the environment variable, you can use `taos -E <DSN>` as below.
```
taos.exe -E $TDENGINE_CLOUD_DSN
```
```
</TabItem>
</TabItem>
<TabItemvalue="ConnectOnMac"label="Connect on Mac (coming soon)">
<TabItemvalue="ConnectOnMac"label="Connect on Mac (coming soon)">
To access the TDengine Cloud, you can execute below command from a Mac terminal.
To access the TDengine Cloud, you can execute `taos` if you already set the environment variable.
```
taos
```
If you did not set environment variable for a TDengine Cloud instance, or you want to access other TDengine Cloud instances rather than the instance you already set the environment variable, you can use `taos -E <DSN>` as below.