Skip to main content
Workspaces in Nile help you organize your databases and resources. This guide covers the commands available for managing workspaces.
Available commands:
  • list - View all available workspaces
  • show - Display current workspace details

Setting Active Workspace

Before using workspace commands, you can set your active workspace:
You can also use the NILE_WORKSPACE environment variable:
Environment Variable

Listing Workspaces

The list command shows all workspaces you have access to.

Options

Examples

List Examples

Showing Current Workspace

The show command displays details about your current workspace.

Options

Examples

Show Examples

Sample Output

Common Workflows

Setting Up Development Environment

Development Setup

Workspace Verification

Verification Workflow

Common Issues

No Active Workspace

When no workspace is selected:
No Workspace

Authentication Issues

When authentication is required:
Auth Issues

Invalid Workspace

When workspace doesn’t exist:
Invalid Workspace

Best Practices

  1. Environment Variables: Use environment variables for different contexts:
  2. Configuration File: Set default workspace in configuration:
  3. Verification: Always verify workspace before critical operations:
  • nile config - Configure CLI settings
  • nile db list - List databases in workspace
  • nile connect - Authentication management
  • nile tenants - Tenant management within workspace