CLI
Local Development
The nile local
command helps you manage a local development environment using Docker. This environment provides a PostgreSQL database pre-configured with Nile’s schema and features.
Overview
Available commands:
start
- Start the local environmentstop
- Stop the local environmentinfo
- Display connection information
Prerequisites
Before using the local environment, ensure you have:
- Docker installed and running
- PostgreSQL client tools (psql) installed
- Sufficient permissions to run Docker commands
Prerequisites Check
Starting the Environment
The start
command launches a Docker container with a pre-configured PostgreSQL database.
Options
Flag | Description | Default |
---|---|---|
--no-prompt | Start without prompting for psql connection | false |
Examples
Start Examples
Sample Output
Start Output
Stopping the Environment
The stop
command gracefully stops and removes the Docker container.
Examples
Stop Examples
Sample Output
Stop Output
Viewing Connection Information
The info
command displays connection details for the running environment.
Examples
Info Examples
Sample Output
Info Output
Common Workflows
Starting Development Session
Development Setup
Using with Database Tools
Database Tools
Debugging Connection Issues
Debug Example
Common Issues
Container Already Running
Container Running
PostgreSQL Client Missing
Missing PSQL
Docker Not Running
Docker Not Running
Best Practices
-
Clean Environment: Always stop the environment when not in use:
-
Connection Management: Save connection information for reuse:
-
Debug Mode: Use debug flag when encountering issues:
Related Commands
nile db
- Manage cloud databasesnile tenants
- Manage tenantsnile users
- Manage usersnile config
- Configure CLI settings
Environment Variables
The local environment uses these default values:
Environment
Security Notes
- The local environment is for development only
- Default credentials should never be used in production
- The environment is not encrypted by default
- Container is accessible only from localhost
Was this page helpful?