list- View all tenantscreate- Create a new tenantdelete- Remove a tenantupdate- Modify tenant details
Prerequisites
Before managing tenants, ensure you have:- Selected a workspace
- Selected a database
- Authenticated with Nile
Prerequisites
Listing Tenants
Thelist command shows all tenants in your database.
Options
Examples
List Examples

Creating Tenants
Thecreate command adds a new tenant to your database.
Required Options
Additional Options
Examples
Create Examples

Updating Tenants
Theupdate command modifies existing tenant details.
Required Options
Additional Options
Examples
Update Examples

Deleting Tenants
Thedelete command removes a tenant from your database.
Required Options
Additional Options
Examples
Delete Examples

Common Workflows
Setting Up Initial Tenants
Initial Setup
Tenant Maintenance
Maintenance
Bulk Operations
Bulk Operations
Common Issues
Tenant Not Found
When tenant doesn’t exist:Not Found
Database Not Selected
When database isn’t specified:No Database
Duplicate Tenant ID
When creating tenant with existing ID:Duplicate ID
Best Practices
-
Naming Conventions: Use clear, consistent tenant names:
-
Regular Verification: Periodically verify tenant list:
-
Backup Before Delete: List tenant details before deletion:
Related Commands
nile db psql- Connect to tenant’s databasenile db connectionstring- Get tenant-specific connectionnile config- Configure CLI settingsnile workspace- Manage workspaces