CLI
Managing Workspaces
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 workspacesshow
- 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
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
Examples
List Examples
Showing Current Workspace
The show
command displays details about your current workspace.
Options
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
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
-
Environment Variables: Use environment variables for different contexts:
-
Configuration File: Set default workspace in configuration:
-
Verification: Always verify workspace before critical operations:
Related Commands
nile config
- Configure CLI settingsnile db list
- List databases in workspacenile connect
- Authentication managementnile tenants
- Tenant management within workspace
Was this page helpful?