wit up and wit down commands provide a simple way to start and stop the complete wit platform, including the database, API server, and web UI.
wit up
Start the complete wit platform with a single command.Options
Examples
What wit up Does
When you runwit up, it:
- Starts PostgreSQL (via Docker) - unless
--no-dbis specified - Runs database migrations - ensures schema is up to date
- Starts the API server - Git HTTP server and tRPC API
- Starts the web UI - React development server (unless
--no-web)
Example Output
wit down
Stop all wit platform services.Options
Examples
Example Output
Data Directory
By default, wit stores all data in~/.wit/:
Custom Data Directory
Requirements
Docker
wit up uses Docker to run PostgreSQL. Ensure Docker is installed and running:
External Database
If you can’t use Docker or prefer an external database:Ports
Default ports used by wit:Custom Ports
Process Management
wit runs services in the background and tracks their process IDs:Checking Status
Logs
Logs are stored in~/.wit/logs/:
Viewing Logs
Workflow Examples
Daily Development
Quick API Testing
Fresh Start
Keep Database Between Restarts
Troubleshooting
wit is already running
wit is already running
Docker not found
Docker not found
Database failed to start
Database failed to start
Check if the port is in use:Either stop the conflicting process or use a different port:
Web UI failed to start
Web UI failed to start
Check if port 5173 is in use:Check the web logs:Try without web UI:
Server won't stop
Server won't stop
If
wit down doesn’t stop services:Environment Variables
Related Commands
wit serve- Start just the API serverwit token- Create API tokenswit collaborator- Manage collaborators