Reference

apex reproduce

Print the apex run invocation that reproduces a past run locally (secrets by name only)

apex reproduce [options] [run]

With an API token, needs the permission actions:read.

Arguments
ArgumentDescription
[run]run id, #number, or "latest"
Options
OptionDescription
--repo <owner/repo>limit the run search to one repository
--job <key>reproduce one matrix leg by its key, rather than the whole workflow
--no-writeprint the command without writing the event payload file it refers to
--jsonprint the recipe as JSON

Example

Print the apex run command that replays a past run on this machine; secrets are named, never copied.

apex reproduce 4812