mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
fix: update command to gather tenant ids
This commit is contained in:
@@ -293,9 +293,9 @@ You can delete old logs by specifying the number of days using the `clear-free-p
|
||||
1. Gather the tenant ID
|
||||
|
||||
```bash
|
||||
$ docker exec -it docker-api-1 bash -c "echo 'db.session.query(Tenant).all(); quit()' | flask shell"
|
||||
$ docker exec -it docker-api-1 bash -c "echo 'from models import Tenant; db.session.query(Tenant.id, Tenant.name).all(); quit()' | flask shell"
|
||||
...
|
||||
>>> [<Tenant 618b5d66-a1f5-4b6b-8d12-f171182a1cb2>]
|
||||
>>> [('618b5d66-a1f5-4b6b-8d12-f171182a1cb2', "Dify's Workspace")]
|
||||
```
|
||||
|
||||
- In this example, the tenant ID is `618b5d66-a1f5-4b6b-8d12-f171182a1cb2`.
|
||||
|
||||
Reference in New Issue
Block a user