Skip to main content
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 environment
  • stop - Stop the local environment
  • info - Display connection information

Prerequisites

Before using the local environment, ensure you have:
  1. Docker installed and running
  2. PostgreSQL client tools (psql) installed
  3. 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

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

  1. Clean Environment: Always stop the environment when not in use:
  2. Connection Management: Save connection information for reuse:
  3. Debug Mode: Use debug flag when encountering issues:
  • nile db - Manage cloud databases
  • nile tenants - Manage tenants
  • nile users - Manage users
  • nile config - Configure CLI settings

Environment Variables

The local environment uses these default values:
Environment

Security Notes

  1. The local environment is for development only
  2. Default credentials should never be used in production
  3. The environment is not encrypted by default
  4. Container is accessible only from localhost