pgdesign v0.26.0 /pgdesign serve

Reference for the pgdesign serve command — usage, flags, arguments, and examples for the serve subcommand of the pgdesign CLI.

#pgdesign serve

Start the pgdesign HTTP API server and web interface

Effect: read_only

#Flags

Flags
NameShortTypeDefaultEnvDescription
--dbstrPGDESIGN_DBPostgreSQL connection URL for the target database server (omit for DB-free project mode)
--portint8080TCP port number for the HTTP API server to listen on
--bindstr127.0.0.1Network interface address to bind the HTTP server to. Defaults to 127.0.0.1 (loopback only). WARNING: the server has NO AUTHENTICATION; binding to a non-loopback address (e.g. 0.0.0.0) exposes the schema, database statistics, and diff endpoints to anyone who can reach that address.
--schemastrPostgreSQL schema name to serve via the API (repeatable)
--timeoutint30Maximum time in seconds for each HTTP request to complete
Search