Quick Start
wit up
Start the wit platform with all services.
| Option | Description |
|---|---|
--port <port> | API server port (default: 3000) |
--db-port <port> | Database port (default: 5432) |
--no-web | Don’t start the web UI |
--no-db | Use external database (requires DATABASE_URL) |
--data-dir <dir> | Data directory (default: ~/.wit) |
-h, --help | Show help message |
What wit up Does
- Starts PostgreSQL via Docker (or connects to external DB)
- Runs database migrations automatically
- Starts the API server for Git operations and tRPC API
- Starts the web UI (Vite dev server)
Examples
Output
When successfully started:wit down
Stop the wit platform.
| Option | Description |
|---|---|
--keep-db | Don’t stop the database |
--remove-data | Remove all data (DESTRUCTIVE) |
-h, --help | Show help message |
Examples
wit platform-status
Check the status of running services.
Data Directory
All platform data is stored in~/.wit by default:
Custom Data Directory
Use--data-dir to specify a different location:
Requirements
Docker
wit uses Docker to run PostgreSQL. Install Docker from docker.com. Check if Docker is installed:External Database (Optional)
If you prefer to use an existing PostgreSQL database:Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | Auto-configured |
PORT | API server port | 3000 |
REPOS_DIR | Repository storage path | ~/.wit/repos |
JWT_SECRET | Secret for JWT tokens | Auto-generated |
NODE_ENV | Environment mode | production |
Using with External Services
To integrate with external services, set the appropriate environment variables before runningwit up:
Production Deployment
For production deployments, consider:Using Docker Compose
Create adocker-compose.yml:
Nginx Reverse Proxy
For production with HTTPS:Troubleshooting
Port Already in Use
Docker Not Found
Database Connection Failed
Check the logs:Checking Logs
Service logs are stored in~/.wit/logs/: