[ci-force] add config instructions

This commit is contained in:
Alexander Wang 2023-03-28 09:32:56 -07:00
parent 72c810145c
commit 65930d4fb4
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -89,6 +89,8 @@ d2 --layout tala --tala-seed 44 input.d2
### Add API token (optional)
#### As environment variable
You may skip this step if you are just evaluating.
If you have an API token, copy and paste it into your environment variables. E.g.
@ -97,6 +99,29 @@ If you have an API token, copy and paste it into your environment variables. E.g
export TSTRUCT_TOKEN = "tstruct_..."
```
#### As config file
You can also use a JSON file as config. The benefit to this is that when the TALA license
expires and has to renew, it will swap out the key for you automatically in the background
with the updated one.
By default, TALA finds the configuration file at the following path:
`$HOME/.config/tstruct/auth.json`:
```json
{
"api_token": "tstruct_xxx"
}
```
You can change where this path is by configuring it with the following environment
variable:
```bash
export TSTRUCT_AUTHFILE = /var/local/...
```
## License keys
TALA is freely installable and locally runnable for evaluation. You'll need an API token