Skip to main content
On this page

Kater CLI Present and share promotion admin

kater promotion admin promote

Starts to promote a shared model's own field to a shared model it reads.

It opens a promotion, or opens the one that a scan already recommends for the same definition. The command drafts and checks the change, and writes nothing until you apply it.

Examples

Terminal window
# Start to promote is_identified to the nearest level
kater promotion admin promote connections/snowflake_prod_connection/modeling/kater_objects/semantic_models/marketing/MARKETING_SESSIONS.sql is_identified
# Start to promote it to the GA4 Sessions model
kater promotion admin promote connections/snowflake_prod_connection/modeling/kater_objects/semantic_models/marketing/MARKETING_SESSIONS.sql is_identified --level semantic.GA4_SESSIONS

Arguments

ArgumentDescription
<path>The shared model’s file, from the content root.
<field>The field to promote. The model must define it itself.

Options

OptionDescription
--level <key>The level it goes to, by its shared model’s key, such as semantic.GA4_SESSIONS, or its id, as kater promotion admin levels lists them. Without it, the field goes to the nearest level.

It also takes the global options anywhere on the line, and --help.

What happens next

The command drafts the change and checks it on the warehouse. Follow it with kater promotion admin show. Then write it with kater promotion admin apply. A promotion that was dismissed or applied opens again and gets a new draft.

See also