Skip to content

Instructions Update-State

Change the state of instructions matching a search filter. Pass the desired instruction state as the first (and only) parameter.

Usage

s10k instructions update-state [-max=<maxDate>] [-min=<minDate>] [-tz=<zone>]
                       [-id=instructionId[,instructionId...]]...
                       [-node=nodeId[,nodeId...]]...
                       [-state=state[,state...]]...
                       <desiredState>

Options

Option Long Version Description
-id= --instruction-id= the instruction ID(s) to show
-node= --node-id= the node ID to show instructions for
-state= --state= an instruction state to limit results to
-min= --min-date= a minimum date to limit results to, like 2020-10-30 or 2020-10-30T12:45
-max= --max-date= a maximum date (exclusive) to limit results to, in same form as -min
-tz= --time-zone= a time zone ID to treat the min/max dates as, instead of the local time zone, like Pacific/Auckland or -05:00 or UTC

Output

A listing of all matching instruction records.

Examples

Update a set of Queued instructions in a date range to Declined:

s10k instructions update-state --node-id 1011 --state Declined Received
Updated 6 instructions to Declined: 123,124,125,126,127,128