Skip to content

Commit 6f0cae7

Browse files
authored
Merge pull request #15 from DataRecce/feature/drc-1329-a-user-can-clearly-see-the-usage-options-of-api-token-in-the
feat: drc-1329
2 parents 09b41f9 + d590870 commit 6f0cae7

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

.idea/recce-docs.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/recce-cloud/share-recce-session-securely.md

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,59 +19,57 @@ When you're ready to share your lineage exploration, query results, or validatio
1919

2020
The first time you do this, you'll need to connect your local Recce to Recce Cloud. This requires signing in and setting up an API token. Once connected, Recce Cloud will host your state file securely, allowing you to share a link that others can open in their browsers.
2121

22-
1. Enable Recce Sharing
22+
### 1. Enable Recce Sharing
2323

24-
To start sharing, launch Recce server and click the **Enable Sharing** button.
24+
To start sharing, launch Recce server and click the **Enable Sharing** button.
2525

26-
![Recce Server](../assets/images/recce-cloud/recce-server-enable-sharing-fs8.png){: .shadow}
26+
![Recce Server](../assets/images/recce-cloud/recce-server-enable-sharing-fs8.png){: .shadow}
2727

28-
1. Sign in to Recce Cloud and get your API token
28+
### 2. Sign in to Recce Cloud and retrieve your API token
2929

30-
Copy your API token from the [personal settings page](https://cloud.datarecce.io/settings#tokens) in Recce Cloud.
30+
Copy your API token from the [personal settings page](https://cloud.datarecce.io/settings#tokens) in Recce Cloud.
3131

32-
![Recce API Token](../assets/images/recce-cloud/setting-page-api-token-fs8.png){: .shadow}
32+
![Recce API Token](../assets/images/recce-cloud/setting-page-api-token-fs8.png){: .shadow}
3333

34-
1. Add the token to `.recce/profile.yml`
34+
### 3. Add the token to `.recce/profile.yml`
3535

36-
For convenience, you can add your API token in `.recce/profile.yml`, located in your home directory.
36+
For convenience, you can add your API token in `.recce/profile.yml`, located in your home directory.
3737

38-
- Find the `.recce` folder in your home directory.
38+
- Find the `.recce` folder in your home directory.
3939

40-
**For Mac/Linux users:**
41-
42-
In the terminal, type the following command to navigate to the Recce configuration directory:
43-
```shell
44-
cd ~/.recce
45-
```
46-
47-
**For Windows users:**
40+
!!! info
41+
**For Mac/Linux users:** In the terminal, type the following command to navigate to the Recce configuration directory:
42+
```shell
43+
cd ~/.recce
44+
```
45+
**For Windows users:** Navigate to `C:\Users\<your_user_name>` and open the hidden `.recce` folder.
4846

49-
Navigate to `C:\Users\<your_user_name>` and open the hidden `.recce` folder.
47+
Or in PowerShell, type:
48+
```powershell
49+
cd ~\.recce
50+
```
5051

51-
Or in PowerShell, type:
52-
```powershell
53-
cd ~\.recce
54-
```
52+
- Open `profile.yml` with any text editor to add your token:
53+
```yaml
54+
api_token: <your_api_token>
55+
```
5556
56-
- Open `profile.yml` with any text editor to add your token:
57-
```yaml
58-
api_token: <your_api_token>
59-
```
60-
Alternatively, for one-time use, you can use `--api-token` flag with commend. e.g.,
57+
!!! note
58+
Alternatively, for one-time use, you can use `--api-token` flag with the following command:
6159
```bash
6260
recce server --api-token <your_api_token>
6361
```
6462

65-
1. Relaunch Recce server
63+
### 4. Relaunch Recce server
6664

67-
After adding the API token, restarting Recce server is required to load the new configuration.
68-
Once it's running, you'll see the **Share** button, then you can click it to get the link on top.
65+
After adding the API token, restarting Recce server is required to load the new configuration.
66+
Once it's running, you'll see the **Share** button, then you can click it to get the link on top.
6967

70-
![Recce Share From Server](../assets/images/recce-cloud/recce-share-from-server-fs8.png){: .shadow}
68+
![Recce Share From Server](../assets/images/recce-cloud/recce-share-from-server-fs8.png){: .shadow}
7169

72-
You can also use the `recce share` command. If you already have a prepared Recce state file, you can obtain a share link directly through the command line.
73-
```bash
74-
recce share <your_state_file>
75-
recce share --api-token <your_api_token> <your_state_file> # for one-time use
76-
```
77-
![Recce Share From CLI](../assets/images/recce-cloud/recce-share-from-cli.png){: .shadow}
70+
You can also use the `recce share` command. If you already have a prepared Recce state file, you can obtain a share link directly through the command line.
71+
```bash
72+
recce share <your_state_file>
73+
recce share --api-token <your_api_token> <your_state_file> # for one-time use
74+
```
75+
![Recce Share From CLI](../assets/images/recce-cloud/recce-share-from-cli.png){: .shadow}

0 commit comments

Comments
 (0)