Before writing a CREATE APPLICATION PACKAGE statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested.
- Never use
CREATE OR REPLACE— always useCREATE APPLICATION PACKAGE IF NOT EXISTSwhere supported. - Always ask the provider whether the package is for internal (intra-organization) or external (cross-organization/Snowflake Marketplace) distribution and set
DISTRIBUTIONaccordingly. SettingDISTRIBUTION = EXTERNALtriggers an automated Snowflake security review; warn the user. MULTIPLE_INSTANCES = TRUEandENABLE_RELEASE_CHANNELS = TRUEare irreversible once set — prompt the user to confirm before including either flag.DATA_RETENTION_TIME_IN_DAYSis bounded by account edition: Standard (0–1), Enterprise (0–90); validate the user's value against their edition before emitting the DDL.