list
- View all tenantscreate
- Create a new tenantdelete
- Remove a tenantupdate
- Modify tenant detailslist
command shows all tenants in your database.
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Workspace containing the database | Current workspace |
--db | Database to list tenants from | Current database |
create
command adds a new tenant to your database.
Flag | Description |
---|---|
--name | Name of the tenant |
Flag | Description | Default |
---|---|---|
--id | Custom ID for the tenant | Auto-generated |
--format | Output format (human, json, csv) | human |
--workspace | Workspace containing the database | Current workspace |
--db | Database to create tenant in | Current database |
update
command modifies existing tenant details.
Flag | Description |
---|---|
--id | ID of the tenant to update |
--new_name | New name for the tenant |
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Workspace containing the database | Current workspace |
--db | Database containing the tenant | Current database |
delete
command removes a tenant from your database.
Flag | Description |
---|---|
--id | ID of the tenant to delete |
Flag | Description | Default |
---|---|---|
--force | Skip confirmation prompt | false |
--workspace | Workspace containing the database | Current workspace |
--db | Database containing the tenant | Current database |
nile db psql
- Connect to tenant’s databasenile db connectionstring
- Get tenant-specific connectionnile config
- Configure CLI settingsnile workspace
- Manage workspaces