polar config initCreate a billing config file from your organization’s meters, benefits and products, and show what to do nextpolar config validateCheck a billing config file and show what saving it to the draft would change, without changing anythingpolar config draftSave a billing config file to the draft catalog of your organization. Nothing changes for customers until you publish itpolar config publishMake your organization’s draft catalog live, so new checkouts sell its products, benefits and meterspolar config resetRewrite your billing config file to match what is on Polar: the draft if there is one, the live catalog otherwisepolar config generateWrite the names in a billing config (its meters, benefits, products and the events its meters count) to a file your application code imports. A misspelled name then fails in your type checker instead of at run timepolar config pruneRemove unused deprecated entries from a billing config file, without changing anything on Polarpolar config disableStop managing your catalog with config, so it can be edited in the dashboard again. Only possible until a publish replaces your live catalog
polar config init
Create a billing config file from your organization’s meters, benefits and products, and show what to do next
Flags
Examples
Write a config for the active organization at the root of your project
polar config validate
Check a billing config file and show what saving it to the draft would change, without changing anything
Flags
Examples
Check polar.config.ts in the current directory
polar config draft
Save a billing config file to the draft catalog of your organization. Nothing changes for customers until you publish it
Flags
Examples
Show what polar.config.ts would change, then save it to the draft after confirmation
polar config publish
Make your organization’s draft catalog live, so new checkouts sell its products, benefits and meters
Flags
Examples
Publish the draft after confirmation, warning about changes in polar.config.ts that the draft is missing
polar config reset
Rewrite your billing config file to match what is on Polar: the draft if there is one, the live catalog otherwise
Flags
Examples
Replace polar.config.ts with the draft on Polar, after confirmation
polar config generate
Write the names in a billing config (its meters, benefits, products and the events its meters count) to a file your application code imports. A misspelled name then fails in your type checker instead of at run time
Flags
Examples
Write the names next to the config, in the language of the project
polar config prune
Remove unused deprecated entries from a billing config file, without changing anything on Polar
Flags
Examples
List the deprecated entries in polar.config.ts and remove the unused ones after confirmation
polar config disable
Stop managing your catalog with config, so it can be edited in the dashboard again. Only possible until a publish replaces your live catalog
Examples
Disable config after confirmation

