temporalio / temporalio/cli

[Feature Request] Add `patch` to schedule command

Open
#939 1 comment 2 reactions 1 assignee View on GitHub

@chaptersix is already working on this.

Since Aug 4, 2026.

enhancement
Dominant language
Go
Stars
379
Forks
103
Avg merge
2d 11h
Merged PRs (30d)
23

Description

Is your feature request related to a problem? Please describe.

I noticed that when updating a scheduled workflow with the cli, if I don't provide exactly all input it will be overwritten (empty). This is fine I guess as it's how update usually behaves. I would however like to have a patch command for schedules so I don't need to provide everything again.

Describe the solution you'd like

When I do temporal schedule patch --schedule_id abc I want the command to keep the schedule exactly the same, except for the arguments I pass.

Given the following schedule

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]

Performing the following executions on the given schedule:
Example 1
temporal schedule patch --schedule_id abc --input 'goodbye'

Schedule ID: abc
Input: "goodbye"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]

Example 2
temporal schedule patch --schedule_id abc --interval 1m would leave the input intact

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "60s",
    "phase": "0s"
  }
]

Example 3
This example is using --headers which are only available on the version built from source.
temporal schedule patch --schedule_id abc --headers 'MyHeader={"Key":123}' would leave both

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]
Headers: MyHeader={"Key": 123}
Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.