9595 --asc Sort in ascending order (default)
9696 --desc Sort in descending order
9797 --limit <n> Maximum number of items to fetch (default: 1000000)
98+ --between <from>..<to> Filter by date range (use with 'list' or 'search'; short dates YYYY-MM-DD or ISO 8601)
99+ --dateField <field> Date field to filter on with --between (default depends on resource)
98100 --version, -v Show version
99101 --help, -h Show help
100102
@@ -257,6 +259,8 @@ Resources and their available flags:
257259 --id <id> Filter by process definition ID (alias: --bpmnProcessId)
258260 --state <state> Filter by state (ACTIVE, COMPLETED, etc.)
259261 --all List all instances (pagination)
262+ --between <from>..<to> Filter by date range (default field: startDate)
263+ --dateField <field> Date field for --between (startDate, endDate)
260264 --sortBy <column> Sort by column (Key, Process ID, State, Version, Start Date, Tenant ID)
261265 --asc Sort in ascending order (default)
262266 --desc Sort in descending order
@@ -275,6 +279,8 @@ Resources and their available flags:
275279 --state <state> Filter by state (CREATED, COMPLETED, etc.)
276280 --assignee <name> Filter by assignee
277281 --all List all tasks (pagination)
282+ --between <from>..<to> Filter by date range (default field: creationDate)
283+ --dateField <field> Date field for --between (creationDate, completionDate, followUpDate, dueDate)
278284 --sortBy <column> Sort by column (Key, Name, State, Assignee, Created, Process Instance, Tenant ID)
279285 --asc Sort in ascending order (default)
280286 --desc Sort in descending order
@@ -284,6 +290,7 @@ Resources and their available flags:
284290 incidents (inc)
285291 --state <state> Filter by state (ACTIVE, RESOLVED, etc.)
286292 --processInstanceKey <key> Filter by process instance
293+ --between <from>..<to> Filter by date range (field: creationTime)
287294 --sortBy <column> Sort by column (Key, Type, Message, State, Created, Process Instance, Tenant ID)
288295 --asc Sort in ascending order (default)
289296 --desc Sort in descending order
@@ -293,6 +300,8 @@ Resources and their available flags:
293300 jobs
294301 --state <state> Filter by state (ACTIVATABLE, ACTIVATED, etc.)
295302 --type <type> Filter by job type
303+ --between <from>..<to> Filter by date range (default field: creationTime)
304+ --dateField <field> Date field for --between (creationTime, lastUpdateTime)
296305 --sortBy <column> Sort by column (Key, Type, State, Retries, Created, Process Instance, Tenant ID)
297306 --asc Sort in ascending order (default)
298307 --desc Sort in descending order
@@ -308,13 +317,18 @@ Resources and their available flags:
308317
309318Examples:
310319 c8ctl list pi --state=ACTIVE
320+ c8ctl list pi --between=2024-01-01..2024-12-31
321+ c8ctl list pi --between=2024-01-01T00:00:00Z..2024-06-30T23:59:59Z --dateField=endDate
311322 c8ctl list pi --sortBy=State
312323 c8ctl list pi --sortBy=State --desc
313324 c8ctl list ut --assignee=john.doe
325+ c8ctl list ut --between=2024-01-01..2024-03-31 --dateField=dueDate
314326 c8ctl list ut --sortBy=Assignee
315327 c8ctl list inc --processInstanceKey=123456
328+ c8ctl list inc --between=2024-06-01..2024-06-30
316329 c8ctl list inc --sortBy=Type --desc
317330 c8ctl list jobs --type=email-service
331+ c8ctl list jobs --between=2024-01-01..2024-12-31
318332 c8ctl list jobs --sortBy=Retries --asc
319333 c8ctl list profiles
320334 c8ctl list plugins
@@ -528,19 +542,21 @@ Usage: c8ctl search <resource> [flags]
528542Resources and their available flags:
529543
530544 process-instances (pi)
531- --bpmnProcessId <id> Filter by process definition ID
545+ --bpmnProcessId, --id <id> Filter by process definition ID
532546 --iid <pattern> Case-insensitive --bpmnProcessId filter
533547 --processDefinitionKey <key> Filter by process definition key
534548 --state <state> Filter by state (ACTIVE, COMPLETED, etc.)
535549 --key <key> Filter by key
536550 --parentProcessInstanceKey <key> Filter by parent process instance key
551+ --between <from>..<to> Filter by date range (default field: startDate)
552+ --dateField <field> Date field for --between (startDate, endDate)
537553 --sortBy <column> Sort by column (Key, Process ID, State, Version, Tenant ID)
538554 --asc Sort in ascending order (default)
539555 --desc Sort in descending order
540556 --profile <name> Use specific profile
541557
542558 process-definitions (pd)
543- --bpmnProcessId <id> Filter by process definition ID
559+ --bpmnProcessId, --id <id> Filter by process definition ID
544560 --iid <pattern> Case-insensitive --bpmnProcessId filter
545561 --name <name> Filter by name
546562 --iname <pattern> Case-insensitive --name filter
@@ -557,6 +573,8 @@ Resources and their available flags:
557573 --processInstanceKey <key> Filter by process instance key
558574 --processDefinitionKey <key> Filter by process definition key
559575 --elementId <id> Filter by element ID
576+ --between <from>..<to> Filter by date range (default field: creationDate)
577+ --dateField <field> Date field for --between (creationDate, completionDate, followUpDate, dueDate)
560578 --sortBy <column> Sort by column (Key, Name, State, Assignee, Process Instance, Tenant ID)
561579 --asc Sort in ascending order (default)
562580 --desc Sort in descending order
@@ -566,11 +584,12 @@ Resources and their available flags:
566584 --state <state> Filter by state (ACTIVE, RESOLVED, etc.)
567585 --processInstanceKey <key> Filter by process instance key
568586 --processDefinitionKey <key> Filter by process definition key
569- --bpmnProcessId <id> Filter by process definition ID
587+ --bpmnProcessId, --id <id> Filter by process definition ID
570588 --iid <pattern> Case-insensitive --bpmnProcessId filter
571589 --errorType <type> Filter by error type
572590 --errorMessage <msg> Filter by error message
573591 --ierrorMessage <pattern> Case-insensitive --errorMessage filter
592+ --between <from>..<to> Filter by date range (field: creationTime)
574593 --sortBy <column> Sort by column (Key, Type, Message, State, Process Instance, Tenant ID)
575594 --asc Sort in ascending order (default)
576595 --desc Sort in descending order
@@ -582,6 +601,8 @@ Resources and their available flags:
582601 --itype <pattern> Case-insensitive --type filter
583602 --processInstanceKey <key> Filter by process instance key
584603 --processDefinitionKey <key> Filter by process definition key
604+ --between <from>..<to> Filter by date range (default field: creationTime)
605+ --dateField <field> Date field for --between (creationTime, lastUpdateTime)
585606 --sortBy <column> Sort by column (Key, Type, State, Retries, Process Instance, Tenant ID)
586607 --asc Sort in ascending order (default)
587608 --desc Sort in descending order
@@ -601,6 +622,14 @@ Resources and their available flags:
601622 --limit <n> Maximum number of items to fetch (default: 1000000)
602623 --profile <name> Use specific profile
603624
625+ Date Range Filter:
626+ Use --between <from>..<to> to filter results by a date range.
627+ Dates can be short (YYYY-MM-DD) or full ISO 8601 datetimes.
628+ Short dates: 'from' is expanded to T00:00:00.000Z, 'to' to T23:59:59.999Z.
629+ Use --dateField to specify which date field to filter on (default depends on resource).
630+ Example: --between=2024-01-01..2024-12-31
631+ Example: --between=2024-01-01T00:00:00Z..2024-06-30T23:59:59Z --dateField=endDate
632+
604633Wildcard Search:
605634 String filters support wildcards: * (any chars) and ? (single char).
606635 Example: --name='*main*' matches all names containing "main".
@@ -613,15 +642,20 @@ Case-Insensitive Search:
613642Examples:
614643 c8ctl search pi --state=ACTIVE
615644 c8ctl search pi --bpmnProcessId=order-process
645+ c8ctl search pi --between=2024-01-01..2024-12-31
646+ c8ctl search pi --between=2024-01-01..2024-06-30 --dateField=endDate
616647 c8ctl search pd --name='*main*'
617648 c8ctl search pd --iname='*order*'
618649 c8ctl search pd --sortBy=Name --desc
619650 c8ctl search ut --assignee=john.doe
620651 c8ctl search ut --iassignee=John
652+ c8ctl search ut --between=2024-01-01..2024-03-31 --dateField=dueDate
621653 c8ctl search ut --sortBy=State --asc
622654 c8ctl search inc --state=ACTIVE --processInstanceKey=123456
655+ c8ctl search inc --between=2024-06-01..2024-06-30
623656 c8ctl search jobs --type=email-service
624657 c8ctl search jobs --itype='*SERVICE*'
658+ c8ctl search jobs --between=2024-01-01..2024-12-31
625659 c8ctl search jobs --sortBy=Type --desc
626660 c8ctl search variables --name=orderId
627661 c8ctl search variables --value=12345 --fullValue
0 commit comments