Skip to Content
Apso is in public beta. Get started

apso dev

Start the current Apso project with the development command for its language. The CLI reads .apsorc and .env, detects the framework and database type, and forwards shutdown signals to the child process.

Usage

apso dev apso dev --docker apso dev --docker --build apso dev --docker --detach

Options

OptionDescriptionDefault
--dockerUse Docker Compose instead of the native development commandfalse
--buildRebuild containers before starting; requires --dockerfalse
-d, --detachRun containers in the background; requires --dockerfalse

Native mode

apso dev uses the project language:

LanguageCommand selected by the CLI
TypeScriptnpm run dev, falling back to npm run start:dev
PythonPython development server from the FastAPI template
GoGo development server from the Gin template

The database mode comes from DATABASE_TYPE in .env. TypeScript projects can use pglite for an embedded local database or postgres for an external server.

Docker mode

apso dev --docker

Docker mode requires Docker, Docker Compose, and a docker-compose.yml file in the project root.

Troubleshooting

The CLI cannot identify the language

Add language to .apsorc:

{ "version": 2, "language": "typescript" }

TypeScript cannot find a dev script

Confirm package.json includes either dev or start:dev.

PostgreSQL connection refused

Start the configured database, use Docker mode, or set DATABASE_TYPE=pglite for local TypeScript development.

Last updated on