npm install @pgtyped/cli @pgtyped/query typescript(TS is a required peer dependency)
- Create a PgTyped
npx pgtyped -w -c config.jsonto start PgTyped in watch mode.
PgTyped requires a
config.json file to run, a basic config file looks like this:
Refer to the CLI page for more info on the config file, available CLI flags and environment variables.
If you are having trouble configuring PgTyped, you can refer to the example app for a preconfigured example.