Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,16 @@ List all commits in the environment. Use an `--environment` flag to specify the
type="string"
description="Fetches all entries before this cursor."
/>
<Attribute
name="--resource-type"
type="string"
description="Filter commits by resource type. One of: `email_layout`, `workflow`, `guide`, `partial`, `translation`. Must be used with --resource-id."
/>
<Attribute
name="--resource-id"
type="string"
description="Filter commits by the given resource id. This is most typically the `key` of the resource. In the case of translations, this will be the locale code and namespace, separated by a `/`. Must be used with --resource-type."
/>
<Attribute name="--json" type="string" description="Format output as json." />
</Attributes>

Expand All @@ -1377,6 +1387,10 @@ knock commit list
knock commit list --no-promoted --environment=staging
```

```bash title="List commits for a specific workflow"
knock commit list --resource-type=workflow --resource-id=new-commet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
knock commit list --resource-type=workflow --resource-id=new-commet
knock commit list --resource-type=workflow --resource-id=new-comment

```

</ExampleColumn>
</Section>

Expand Down
Loading