snow dcm commands¶
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.
The selected target continues to supply its templating configuration when you pass an explicit project identifier. The CLI still resolves the manifest and source files.
Targets don’t select the authenticated connection, account, or active role. Use global connection options such as --connection and
--role separately. The CLI warns when the connected account doesn’t match the target’s account_identifier or, during project creation,
when the current role doesn’t match project_owner; it doesn’t switch the account or assume the owner role.
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.