Quill
Add a second tenant

CLI

Add a second tenant

Copies the Quill CLI's install command: curl -fsSL https://quill.co/install.sh | shView as MarkdownThe whole page, as plain Markdown.

1. Create the tenant

quill tenant create --field user_id --table public.users

2. Map it to the first tenant

quill tenant update --field user_id --maps-to organization_id

3. Add the tenant to a virtual table

quill schema update --name orders \
  --sql "SELECT organization_id, user_id, id, category, amount, created_at FROM public.orders" \
  --tenant-fields organization_id --tenant-fields user_id

4. Add a tenant filter to a dashboard

quill dashboard update --name Sales --tenant-filter

5. Create a dashboard for the new tenant

quill dashboard create --name "My orders" --owner-tenant user_id