snow dcm commands¶
Note
To use DCM commands, you must enable the SNOWFLAKE_CLI_FEATURES_ENABLE_SNOWFLAKE_PROJECTS feature flag, using either of the following methods:
Set the
SNOWFLAKE_CLI_FEATURES_ENABLE_SNOWFLAKE_PROJECTSenvironment variable totruebefore running the command.Set the
enable_snowflake_projectsconfiguration option totruein theconfig.tomlfile, as shown in the following example:
Snowflake CLI supports the following commands for managing Snowflake DCM project objects:
Project configuration (manifest.yml)¶
DCM projects use a manifest.yml file to define project configuration. For more details, see DCM Projects files and templates.
Project identifier resolution¶
Most DCM commands accept an optional project identifier argument and a --target option. The project name is resolved as follows:
If a project identifier is provided as an argument, it is used directly.
If
--targetis specified, theproject_namefrom that target inmanifest.ymlis used.If neither is provided, the
default_targetfrommanifest.ymlis used.
Examples:
The --from option specifies the directory containing the manifest.yml and project source files. If omitted, the current directory is used.
Note
Project identifiers can be specified as a fully qualified name (MY_DB.MY_SCHEMA.MY_PROJECT) or as a simple name (MY_PROJECT). When using a simple name, the database and schema are derived from the active connection context. Using fully qualified names is recommended to avoid ambiguity.