Services
Provision and manage databases, caches, and other managed services.
slasha provision
Create a new managed service and attach it to your application.
# Provision a PostgreSQL 16 database
slasha provision --kind postgresql --name db --version 16
# Provision a Redis cache
slasha provision --kind redis --name cache --version 7
slasha services list
List all services currently attached to an application.
# List services for the current app
slasha services list
slasha services proxy
Open a secure local tunnel to a remote service. This lets you connect with local tools like TablePlus or psql as if the database was running locally.
# Open a tunnel to the 'db' service on a random port
slasha services proxy db
# Open a tunnel on a specific local port
slasha services proxy db --port 5432
slasha services backup
Download a data dump from a service (e.g., a .sql file for Postgres or MySQL).
# Save a backup of the 'db' service to a file
slasha services backup db --file backup.sql
# Stream the backup to stdout
slasha services backup db > backup.sql
slasha services logs
Stream the internal logs for a service container.
# View history of service logs
slasha services logs db
# Stream live service logs
slasha services logs db --follow
slasha services restart
Restart a service container without losing any data.
# Restart the 'db' service
slasha services restart db
slasha services delete
Permanently remove a service and its associated data volumes.
Warning: This action is irreversible. All data stored in the service will be lost.
# Delete a service (will prompt for confirmation)
slasha services delete db
# Force delete without confirmation
slasha services delete db -y