If --project-id, --branch, or --database are omitted, the CLI resolves them from your context file, auto-selects when there is only one option, and otherwise asks you to pass the flag.
Settings flags
The create and update subcommands share a set of settings flags that configure how the Data API serves your database:
Flag
Description
Type
--db-aggregates-enabled
Enable aggregate functions in queries
boolean
--db-anon-role
Database role used for anonymous (unauthenticated) requests
string
--db-extra-search-path
Extra schemas appended to the search path
string
--db-max-rows
Maximum number of rows returned by a single request
number
--db-schemas
Comma-separated list of schemas exposed via the Data API
Updates Neon Data API settings. By default, the flags you provide are merged with the current settings. Pass --replace to overwrite all settings with only the flags you provide.
neon data-api update [options]
Option
Description
Type
Default
Required
--db-aggregates-enabled
Enable aggregate functions in queries
boolean
—
No
--db-anon-role
Database role used for anonymous (unauthenticated) requests
string
—
No
--db-extra-search-path
Extra schemas appended to the search path
string
—
No
--db-max-rows
Maximum number of rows returned by a single request
number
—
No
--db-schemas
Comma-separated list of schemas exposed via the Data API
string
—
No
--jwt-cache-max-lifetime
Maximum JWT cache lifetime in seconds
number
—
No
--jwt-role-claim-key
JWT claim path used to extract the role
string
—
No
--openapi-mode
OpenAPI mode Possible values: ignore-privileges, disabled
string
—
No
--replace
Replace settings with only the flags provided. Omitted settings revert to server defaults.
boolean
false
No
--server-cors-allowed-origins
CORS allowed origins
string
—
No
--server-timing-enabled
Enable Server-Timing response headers
boolean
—
No
--branch
Branch ID or name
string
—
No
--database
Database name
string
—
No
--project-id
Project ID
string
—
No
update requires at least one settings flag. To refresh the schema cache without changing settings, use refresh-schema instead.