@@ -123,6 +123,11 @@ nile config --api-key <key> # Set API key
123123nile config --workspace < name> # Set workspace
124124nile config --db < name> # Set database
125125nile config reset # Reset configuration
126+
127+ # Authentication Commands
128+ nile auth quickstart --nextjs # Add Multi-tenant Authentication in 2 minutes
129+ nile auth env # Generate environment variables for authentication
130+ nile auth env --output .env.local # Save environment variables to a file
126131```
127132
128133### Global Options
@@ -427,3 +432,57 @@ nile connect status
427432## License
428433
429434MIT
435+
436+ ## Local Development Environment
437+
438+ The ` nile local ` commands help you set up and manage a local development environment:
439+
440+ ### Starting the Environment
441+
442+ ``` bash
443+ # Start the environment (with interactive prompt for psql)
444+ nile local start
445+
446+ # Start without prompting for psql connection
447+ nile local start --no-prompt
448+ ```
449+
450+ ### Managing Connections
451+
452+ ``` bash
453+ # Show connection information
454+ nile local info
455+
456+ # Connect to database using psql
457+ nile local connect --psql
458+
459+ # Stop the environment
460+ nile local stop
461+ ```
462+
463+ ### Connection Details
464+ When running locally, these credentials are used:
465+ - Host: localhost
466+ - Port: 5432
467+ - Database: test
468+ - Username: 00000000-0000-0000-0000-000000000000
469+ - Password: password
470+
471+ ## Authentication Setup
472+
473+ The ` nile auth ` commands help you set up authentication in your application:
474+
475+ ### Quick Start
476+ ``` bash
477+ # Add authentication to a Next.js application
478+ nile auth quickstart --nextjs
479+ ```
480+
481+ ### Environment Variables
482+ ``` bash
483+ # Generate and display environment variables
484+ nile auth env
485+
486+ # Save environment variables to a file
487+ nile auth env --output .env.local
488+ ```
0 commit comments