# 1. Browser-based Authenticationnile connect login# 2. API Key Authenticationnile --api-key YOUR_API_KEY db list# or save it in confignile config --api-key YOUR_API_KEY# 3. Environment Variablesexport NILE_API_KEY=YOUR_API_KEYnile db list
Before using the CLI, you should set up your workspace and default database:
Basic Setup
Copy
Ask AI
# Set your workspacenile config --workspace your-workspace# Set your default databasenile config --db your-database# Verify your configurationnile config
# List available regionsnile db regions# Create a new databasenile db create --name mydb --region AWS_US_WEST_2# Connect to your databasenile db psql --name mydb
# Create a new tenantnile tenants create --name "My Tenant"# List all tenantsnile tenants list# Update a tenantnile tenants update --id tenant-123 --new_name "Updated Name"# Delete a tenantnile tenants delete --id tenant-123# Show tenant detailsnile tenants show --id tenant-123