Skip to main content
The 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 run wit up, it:
  1. Starts PostgreSQL (via Docker) - unless --no-db is specified
  2. Runs database migrations - ensures schema is up to date
  3. Starts the API server - Git HTTP server and tRPC API
  4. 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

Either stop the existing instance:
Or if the PID file is stale:
Either install Docker or use an external database:
Check if the port is in use:
Either stop the conflicting process or use a different port:
Check if port 5173 is in use:
Check the web logs:
Try without web UI:
If wit down doesn’t stop services:

Environment Variables