Skip to main content
1

Install SDK and add API key

Create an API key and add to your .env file.
.env
2

Generate types

This command creates a local priceos.types file with the MyFeatures type that you can import and use in your hooks or SDK.Run with --help to see more options.
3

Use generated types

Regenerate types whenever you add, remove, or rename a feature.

CLI options

--api-key <key>
string
PriceOS API key. If omitted, the CLI checks PRICEOS_API_KEY in .env.local, then .env, then process env.
--out <path>
string
Write the generated types file to a specific file path.
--out-dir <path>
string
Write the generated file into a specific directory (ignored when --out is provided).
-h, --help
flag
Show the CLI help output with all available options.