Skip to main content
On this page

Kater CLI Projects and timelines project figure

kater project figure add

Add figures of one query to a project, in one commit.

Show the change to the person and make it only after they say yes. Recommend --better and --alert from the goal and the figures’ periods, as Add to in Kater does. The first figure of a project is the goal’s. A figure the project holds already writes nothing. With another --grain than the one it has, the command is refused and names kater project figure set.

Examples

Terminal window
# Add figures of one query to a project, in one commit
kater project figure add <project> <query> --figure <figure> --why <why>

Arguments

ArgumentDescription
<project>The project: its name alone when only one project you can read has it, such as lift_google_ads_roas, its key, such as <connection>/users/<user_id>/<name>, its id, rel1_…, or its folder, such as connections/<connection>/users/<email>/projects/<name>.
<query>The query whose figures to add: its key, such as duckdb_sample/shop/top_regions, or in a person’s folder, duckdb_sample/users/<user id>/shop/top_regions; as <workspace>/<name>, such as shop/top_regions; its workspace’s folder and its name, such as connections/<connection>/workspaces/shop/top_regions; or its id, rel1_…, also from before a rename.

Options

OptionDescription
--figure <figure>Required. A figure to add, as <field>[:<row key>], such as platform_roas:TikTok Ads. Give it once for each figure. You can give it more than one time.
--grain <grain>The period each figure is read and compared by: hour, day, week, month, quarter or year. Left out, a week when its query allows it, else the finest period it allows. A period finer than its query’s grouping is refused, with the periods it allows. It is hour, day, week, month, quarter or year.
--label <text>The field as people read it, such as ROAS. Each figure reads it after its row key, such as TikTok Ads ROAS. Left out, the field’s name.
--better <better>Which way is good for each figure: higher, lower, or none for a figure that should only stay in its range. The default is none.
--alert <alert>When to say so for each figure: below:2.2, above:5000, change:20 (a percent), or none for outside its usual range.
--reach <target-value>The target for each figure: the value or the range to reach, and by when if it has a day, such as 2.5, 2.5:2026-11-30 or 2.0-2.4:2026-11-30. The query’s charts draw it as a line.
--goalMake the first figure the goal’s. The figure that was the goal stops being it.
--everyAdd every figure of the query, and each new row of it as it arrives.
--why <why>Required. Why the project holds them, which the timeline shows on its settings row.

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

See also