@camunda8/cli 2.8.0-alpha.5 → 2.8.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1145 -73
- package/dist/command-dispatch.js +1 -1
- package/dist/command-dispatch.js.map +1 -1
- package/dist/commands/completion.d.ts +6 -32
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/completion.js +8 -687
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/mcp-proxy.d.ts +0 -17
- package/dist/commands/mcp-proxy.d.ts.map +1 -1
- package/dist/commands/mcp-proxy.js +3 -104
- package/dist/commands/mcp-proxy.js.map +1 -1
- package/dist/commands/open.d.ts +3 -44
- package/dist/commands/open.d.ts.map +1 -1
- package/dist/commands/open.js +5 -81
- package/dist/commands/open.js.map +1 -1
- package/dist/commands/plugins.d.ts +2 -8
- package/dist/commands/plugins.d.ts.map +1 -1
- package/dist/commands/plugins.js +2 -28
- package/dist/commands/plugins.js.map +1 -1
- package/dist/commands/search.d.ts +2 -39
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +2 -83
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/watch.d.ts +2 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +3 -2
- package/dist/commands/watch.js.map +1 -1
- package/dist/completion.d.ts +36 -0
- package/dist/completion.d.ts.map +1 -0
- package/dist/completion.js +689 -0
- package/dist/completion.js.map +1 -0
- package/dist/{commands/deployments.d.ts → deployments.d.ts} +1 -1
- package/dist/deployments.d.ts.map +1 -0
- package/dist/{commands/deployments.js → deployments.js} +8 -8
- package/dist/deployments.js.map +1 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/{commands/help.js → help.js} +4 -4
- package/dist/help.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp-proxy-helpers.d.ts +23 -0
- package/dist/mcp-proxy-helpers.d.ts.map +1 -0
- package/dist/mcp-proxy-helpers.js +109 -0
- package/dist/mcp-proxy-helpers.js.map +1 -0
- package/dist/open-helpers.d.ts +52 -0
- package/dist/open-helpers.d.ts.map +1 -0
- package/dist/open-helpers.js +88 -0
- package/dist/open-helpers.js.map +1 -0
- package/dist/plugin-version.d.ts +15 -0
- package/dist/plugin-version.d.ts.map +1 -0
- package/dist/plugin-version.js +37 -0
- package/dist/plugin-version.js.map +1 -0
- package/dist/search-helpers.d.ts +46 -0
- package/dist/search-helpers.d.ts.map +1 -0
- package/dist/search-helpers.js +90 -0
- package/dist/search-helpers.js.map +1 -0
- package/dist/watch-constants.d.ts +7 -0
- package/dist/watch-constants.d.ts.map +1 -0
- package/dist/watch-constants.js +7 -0
- package/dist/watch-constants.js.map +1 -0
- package/package.json +9 -5
- package/dist/commands/deployments.d.ts.map +0 -1
- package/dist/commands/deployments.js.map +0 -1
- package/dist/commands/help.d.ts.map +0 -1
- package/dist/commands/help.js.map +0 -1
- /package/dist/{commands/help.d.ts → help.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -73,71 +73,6 @@ c8ctl help plugin # Shows plugin management help
|
|
|
73
73
|
c8ctl --version
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
### Basic Commands
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
# List and get resources (use aliases pi, pd, ut, inc for convenience)
|
|
80
|
-
c8ctl list pi # List process instances
|
|
81
|
-
c8ctl list pd # List process definitions
|
|
82
|
-
c8ctl get pi 123456 # Get process instance by key
|
|
83
|
-
c8ctl get pi 123456 --variables # Get process instance with variables
|
|
84
|
-
c8ctl get pd 123456 --xml # Get process definition as XML
|
|
85
|
-
|
|
86
|
-
# Create process instance
|
|
87
|
-
c8ctl create pi --id=myProcess
|
|
88
|
-
c8ctl create process-instance --id=myProcess
|
|
89
|
-
|
|
90
|
-
# Create process instance and wait for completion
|
|
91
|
-
c8ctl create pi --id=myProcess --awaitCompletion
|
|
92
|
-
|
|
93
|
-
# Create process instance with custom timeout (30 seconds)
|
|
94
|
-
c8ctl create pi --id=myProcess --awaitCompletion --requestTimeout=30000
|
|
95
|
-
|
|
96
|
-
# Await process instance completion (alias for create with --awaitCompletion)
|
|
97
|
-
c8ctl await pi --id=myProcess
|
|
98
|
-
c8ctl await process-instance --id=myProcess
|
|
99
|
-
|
|
100
|
-
# Await with custom timeout
|
|
101
|
-
c8ctl await pi --id=myProcess --requestTimeout=60000
|
|
102
|
-
|
|
103
|
-
# Cancel process instance
|
|
104
|
-
c8ctl cancel pi 123456
|
|
105
|
-
|
|
106
|
-
# Get forms
|
|
107
|
-
c8ctl get form 123456 # Get form (searches both user task and process definition)
|
|
108
|
-
c8ctl get form 123456 --ut # Get form for user task only
|
|
109
|
-
c8ctl get form 123456 --pd # Get start form for process definition only
|
|
110
|
-
|
|
111
|
-
# Search resources with filters
|
|
112
|
-
c8ctl search pi --state=ACTIVE # Search active process instances
|
|
113
|
-
c8ctl search pi --id=myProcess --version=2 # Search process instances by ID and version
|
|
114
|
-
c8ctl search pd --id=myProcess # Search process definitions by ID
|
|
115
|
-
c8ctl search pd --version=2 # Search process definitions by version
|
|
116
|
-
c8ctl search pd --name='*order*' # Wildcard search (* = any chars, ? = single char)
|
|
117
|
-
c8ctl search pd --id='process-v?' # Single-char wildcard (matches process-v1, process-v2, …)
|
|
118
|
-
c8ctl search pd --iname='*ORDER*' # Case-insensitive search (--i prefix)
|
|
119
|
-
c8ctl search ut --iassignee=John # Case-insensitive assignee search
|
|
120
|
-
c8ctl search ut --assignee=john # Search user tasks by assignee
|
|
121
|
-
c8ctl search inc --state=ACTIVE # Search active incidents
|
|
122
|
-
c8ctl search jobs --type='*service*' # Search jobs with type containing "service"
|
|
123
|
-
c8ctl search variables --name=myVar # Search variables by name
|
|
124
|
-
c8ctl search variables --fullValue # Search with full (non-truncated) values
|
|
125
|
-
|
|
126
|
-
# Deploy and run
|
|
127
|
-
c8ctl deploy ./my-process.bpmn # Deploy a single file
|
|
128
|
-
c8ctl deploy # Deploy current directory
|
|
129
|
-
c8ctl run ./my-process.bpmn # Deploy and start process
|
|
130
|
-
c8ctl watch # Watch for changes and auto-deploy
|
|
131
|
-
c8ctl watch --force # Keep watching after all deployment errors
|
|
132
|
-
|
|
133
|
-
# Open Camunda web applications
|
|
134
|
-
c8ctl open operate # Open Camunda Operate in browser
|
|
135
|
-
c8ctl open tasklist # Open Camunda Tasklist in browser
|
|
136
|
-
c8ctl open modeler # Open Camunda Web Modeler in browser
|
|
137
|
-
c8ctl open optimize # Open Camunda Optimize in browser
|
|
138
|
-
c8ctl open operate --profile=prod # Open Operate with a specific profile
|
|
139
|
-
```
|
|
140
|
-
|
|
141
76
|
### Default Extensions
|
|
142
77
|
|
|
143
78
|
When scanning directories, `deploy`, `run`, and `watch` only include files with these extensions:
|
|
@@ -505,14 +440,6 @@ export const commands = {
|
|
|
505
440
|
|
|
506
441
|
When plugins are loaded, their commands automatically appear in `c8ctl help` output. See [PLUGIN-HELP.md](PLUGIN-HELP.md) for detailed documentation on plugin help integration.
|
|
507
442
|
|
|
508
|
-
### Resource Aliases
|
|
509
|
-
|
|
510
|
-
- `pi` = process-instance(s)
|
|
511
|
-
- `pd` = process-definition(s)
|
|
512
|
-
- `ut` = user-task(s)
|
|
513
|
-
- `inc` = incident(s)
|
|
514
|
-
- `msg` = message
|
|
515
|
-
|
|
516
443
|
---
|
|
517
444
|
|
|
518
445
|
## Agent Usage (AI / Programmatic Consumption)
|
|
@@ -810,6 +737,1151 @@ Modeler profiles are:
|
|
|
810
737
|
- Prefixed with `modeler:` when used in c8ctl
|
|
811
738
|
- Support both cloud and self-managed clusters
|
|
812
739
|
|
|
740
|
+
<!-- command-reference:start -->
|
|
741
|
+
|
|
742
|
+
## Command Reference
|
|
743
|
+
|
|
744
|
+
<!-- Auto-generated from COMMAND_REGISTRY. Do not edit manually.
|
|
745
|
+
Run: node --experimental-strip-types scripts/sync-readme-commands.ts -->
|
|
746
|
+
|
|
747
|
+
### Global Flags
|
|
748
|
+
|
|
749
|
+
These flags are accepted by every command.
|
|
750
|
+
|
|
751
|
+
| Flag | Type | Required | Description |
|
|
752
|
+
|------|------|----------|-------------|
|
|
753
|
+
| `--help` / `-h` | boolean | | Show help |
|
|
754
|
+
| `--version` / `-v` | string | | Show CLI version, or filter by process definition version on supported commands |
|
|
755
|
+
| `--profile` | string | | Use a specific profile |
|
|
756
|
+
| `--dry-run` | boolean | | Preview the API request without executing |
|
|
757
|
+
| `--verbose` | boolean | | Show verbose output |
|
|
758
|
+
| `--fields` | string | | Comma-separated list of fields to display |
|
|
759
|
+
|
|
760
|
+
### Resource Aliases
|
|
761
|
+
|
|
762
|
+
| Alias | Resource |
|
|
763
|
+
|-------|----------|
|
|
764
|
+
| `auth` | `authorization` |
|
|
765
|
+
| `inc` | `incident` |
|
|
766
|
+
| `mr` | `mapping-rule` |
|
|
767
|
+
| `msg` | `message` |
|
|
768
|
+
| `pd` | `process-definition` |
|
|
769
|
+
| `pi` | `process-instance` |
|
|
770
|
+
| `ut` | `user-task` |
|
|
771
|
+
| `vars` | `variable` |
|
|
772
|
+
| `var` | `variable` |
|
|
773
|
+
|
|
774
|
+
### Search Flags
|
|
775
|
+
|
|
776
|
+
These flags are available on `list` and `search` commands.
|
|
777
|
+
|
|
778
|
+
| Flag | Type | Required | Description |
|
|
779
|
+
|------|------|----------|-------------|
|
|
780
|
+
| `--sortBy` | string | | Sort results by field |
|
|
781
|
+
| `--asc` | boolean | | Sort ascending |
|
|
782
|
+
| `--desc` | boolean | | Sort descending |
|
|
783
|
+
| `--limit` | string | | Maximum number of results |
|
|
784
|
+
| `--between` | string | | Date range filter (e.g. 7d, 30d, 2024-01-01..2024-12-31) |
|
|
785
|
+
| `--dateField` | string | | Date field for --between filter |
|
|
786
|
+
|
|
787
|
+
### Commands
|
|
788
|
+
|
|
789
|
+
#### `list`
|
|
790
|
+
|
|
791
|
+
List resources
|
|
792
|
+
|
|
793
|
+
**Resources:** pi (process-instance), pd (process-definition), ut (user-task), inc (incident), jobs, profiles (profile), plugins (plugin), users (user), roles (role), groups (group), tenants (tenant), auth (authorization), mapping-rules (mapping-rule)
|
|
794
|
+
|
|
795
|
+
**Verb-level flags:**
|
|
796
|
+
|
|
797
|
+
| Flag | Type | Required | Description |
|
|
798
|
+
|------|------|----------|-------------|
|
|
799
|
+
| `--all` | boolean | | List all (disable pagination limit) |
|
|
800
|
+
|
|
801
|
+
**Resource-specific flags:**
|
|
802
|
+
|
|
803
|
+
<details>
|
|
804
|
+
<summary><code>process-definition</code> (<code>pd</code>)</summary>
|
|
805
|
+
|
|
806
|
+
| Flag | Type | Required | Description |
|
|
807
|
+
|------|------|----------|-------------|
|
|
808
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
809
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
810
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
811
|
+
| `--name` | string | | Filter by name |
|
|
812
|
+
| `--key` | string | | Filter by key |
|
|
813
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
814
|
+
| `--iname` | string | | Case-insensitive filter by name |
|
|
815
|
+
|
|
816
|
+
</details>
|
|
817
|
+
|
|
818
|
+
<details>
|
|
819
|
+
<summary><code>process-instance</code> (<code>pi</code>)</summary>
|
|
820
|
+
|
|
821
|
+
| Flag | Type | Required | Description |
|
|
822
|
+
|------|------|----------|-------------|
|
|
823
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
824
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
825
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
826
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
827
|
+
| `--state` | string | | Filter by state (ACTIVE, COMPLETED, etc) |
|
|
828
|
+
| `--key` | string | | Filter by key |
|
|
829
|
+
| `--parentProcessInstanceKey` | string | | Filter by parent process instance key |
|
|
830
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
831
|
+
|
|
832
|
+
</details>
|
|
833
|
+
|
|
834
|
+
<details>
|
|
835
|
+
<summary><code>user-task</code> (<code>ut</code>)</summary>
|
|
836
|
+
|
|
837
|
+
| Flag | Type | Required | Description |
|
|
838
|
+
|------|------|----------|-------------|
|
|
839
|
+
| `--state` | string | | Filter by state |
|
|
840
|
+
| `--assignee` | string | | Filter by assignee |
|
|
841
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
842
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
843
|
+
| `--elementId` | string | | Filter by element ID |
|
|
844
|
+
| `--iassignee` | string | | Case-insensitive filter by assignee |
|
|
845
|
+
|
|
846
|
+
</details>
|
|
847
|
+
|
|
848
|
+
<details>
|
|
849
|
+
<summary><code>incident</code> (<code>inc</code>)</summary>
|
|
850
|
+
|
|
851
|
+
| Flag | Type | Required | Description |
|
|
852
|
+
|------|------|----------|-------------|
|
|
853
|
+
| `--state` | string | | Filter by state |
|
|
854
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
855
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
856
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
857
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
858
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
859
|
+
| `--errorType` | string | | Filter by error type |
|
|
860
|
+
| `--errorMessage` | string | | Filter by error message |
|
|
861
|
+
| `--ierrorMessage` | string | | Case-insensitive filter by error message |
|
|
862
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
863
|
+
|
|
864
|
+
</details>
|
|
865
|
+
|
|
866
|
+
<details>
|
|
867
|
+
<summary><code>jobs</code></summary>
|
|
868
|
+
|
|
869
|
+
| Flag | Type | Required | Description |
|
|
870
|
+
|------|------|----------|-------------|
|
|
871
|
+
| `--state` | string | | Filter by state |
|
|
872
|
+
| `--type` | string | | Filter by job type |
|
|
873
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
874
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
875
|
+
| `--itype` | string | | Case-insensitive filter by job type |
|
|
876
|
+
|
|
877
|
+
</details>
|
|
878
|
+
|
|
879
|
+
<details>
|
|
880
|
+
<summary><code>user</code></summary>
|
|
881
|
+
|
|
882
|
+
| Flag | Type | Required | Description |
|
|
883
|
+
|------|------|----------|-------------|
|
|
884
|
+
| `--username` | string | | Filter by username |
|
|
885
|
+
| `--name` | string | | Filter by name |
|
|
886
|
+
| `--email` | string | | Filter by email |
|
|
887
|
+
|
|
888
|
+
</details>
|
|
889
|
+
|
|
890
|
+
<details>
|
|
891
|
+
<summary><code>role</code></summary>
|
|
892
|
+
|
|
893
|
+
| Flag | Type | Required | Description |
|
|
894
|
+
|------|------|----------|-------------|
|
|
895
|
+
| `--roleId` | string | | Filter by role ID |
|
|
896
|
+
| `--name` | string | | Filter by name |
|
|
897
|
+
|
|
898
|
+
</details>
|
|
899
|
+
|
|
900
|
+
<details>
|
|
901
|
+
<summary><code>group</code></summary>
|
|
902
|
+
|
|
903
|
+
| Flag | Type | Required | Description |
|
|
904
|
+
|------|------|----------|-------------|
|
|
905
|
+
| `--groupId` | string | | Filter by group ID |
|
|
906
|
+
| `--name` | string | | Filter by name |
|
|
907
|
+
|
|
908
|
+
</details>
|
|
909
|
+
|
|
910
|
+
<details>
|
|
911
|
+
<summary><code>tenant</code></summary>
|
|
912
|
+
|
|
913
|
+
| Flag | Type | Required | Description |
|
|
914
|
+
|------|------|----------|-------------|
|
|
915
|
+
| `--tenantId` | string | | Filter by tenant ID |
|
|
916
|
+
| `--name` | string | | Filter by name |
|
|
917
|
+
|
|
918
|
+
</details>
|
|
919
|
+
|
|
920
|
+
<details>
|
|
921
|
+
<summary><code>authorization</code> (<code>auth</code>)</summary>
|
|
922
|
+
|
|
923
|
+
| Flag | Type | Required | Description |
|
|
924
|
+
|------|------|----------|-------------|
|
|
925
|
+
| `--ownerId` | string | | Filter by owner ID |
|
|
926
|
+
| `--ownerType` | string | | Filter by owner type |
|
|
927
|
+
| `--resourceType` | string | | Filter by resource type |
|
|
928
|
+
| `--resourceId` | string | | Filter by resource ID |
|
|
929
|
+
|
|
930
|
+
</details>
|
|
931
|
+
|
|
932
|
+
<details>
|
|
933
|
+
<summary><code>mapping-rule</code> (<code>mr</code>)</summary>
|
|
934
|
+
|
|
935
|
+
| Flag | Type | Required | Description |
|
|
936
|
+
|------|------|----------|-------------|
|
|
937
|
+
| `--mappingRuleId` | string | | Filter by mapping rule ID |
|
|
938
|
+
| `--name` | string | | Filter by name |
|
|
939
|
+
| `--claimName` | string | | Filter by claim name |
|
|
940
|
+
| `--claimValue` | string | | Filter by claim value |
|
|
941
|
+
|
|
942
|
+
</details>
|
|
943
|
+
|
|
944
|
+
**Examples:**
|
|
945
|
+
|
|
946
|
+
```bash
|
|
947
|
+
c8ctl list pi # List process instances
|
|
948
|
+
c8ctl list pd # List process definitions
|
|
949
|
+
c8ctl list users # List users
|
|
950
|
+
```
|
|
951
|
+
|
|
952
|
+
---
|
|
953
|
+
|
|
954
|
+
#### `search`
|
|
955
|
+
|
|
956
|
+
Search resources with filters (wildcards, date ranges, case-insensitive)
|
|
957
|
+
|
|
958
|
+
**Resources:** pi (process-instance), pd (process-definition), ut (user-task), inc (incident), jobs, vars (variable), users (user), roles (role), groups (group), tenants (tenant), auth (authorization), mapping-rules (mapping-rule)
|
|
959
|
+
|
|
960
|
+
**Resource-specific flags:**
|
|
961
|
+
|
|
962
|
+
<details>
|
|
963
|
+
<summary><code>process-definition</code> (<code>pd</code>)</summary>
|
|
964
|
+
|
|
965
|
+
| Flag | Type | Required | Description |
|
|
966
|
+
|------|------|----------|-------------|
|
|
967
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
968
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
969
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
970
|
+
| `--name` | string | | Filter by name |
|
|
971
|
+
| `--key` | string | | Filter by key |
|
|
972
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
973
|
+
| `--iname` | string | | Case-insensitive filter by name |
|
|
974
|
+
|
|
975
|
+
</details>
|
|
976
|
+
|
|
977
|
+
<details>
|
|
978
|
+
<summary><code>process-instance</code> (<code>pi</code>)</summary>
|
|
979
|
+
|
|
980
|
+
| Flag | Type | Required | Description |
|
|
981
|
+
|------|------|----------|-------------|
|
|
982
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
983
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
984
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
985
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
986
|
+
| `--state` | string | | Filter by state (ACTIVE, COMPLETED, etc) |
|
|
987
|
+
| `--key` | string | | Filter by key |
|
|
988
|
+
| `--parentProcessInstanceKey` | string | | Filter by parent process instance key |
|
|
989
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
990
|
+
|
|
991
|
+
</details>
|
|
992
|
+
|
|
993
|
+
<details>
|
|
994
|
+
<summary><code>user-task</code> (<code>ut</code>)</summary>
|
|
995
|
+
|
|
996
|
+
| Flag | Type | Required | Description |
|
|
997
|
+
|------|------|----------|-------------|
|
|
998
|
+
| `--state` | string | | Filter by state |
|
|
999
|
+
| `--assignee` | string | | Filter by assignee |
|
|
1000
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
1001
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
1002
|
+
| `--elementId` | string | | Filter by element ID |
|
|
1003
|
+
| `--iassignee` | string | | Case-insensitive filter by assignee |
|
|
1004
|
+
|
|
1005
|
+
</details>
|
|
1006
|
+
|
|
1007
|
+
<details>
|
|
1008
|
+
<summary><code>incident</code> (<code>inc</code>)</summary>
|
|
1009
|
+
|
|
1010
|
+
| Flag | Type | Required | Description |
|
|
1011
|
+
|------|------|----------|-------------|
|
|
1012
|
+
| `--state` | string | | Filter by state |
|
|
1013
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
1014
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
1015
|
+
| `--bpmnProcessId` | string | | Filter by BPMN process ID |
|
|
1016
|
+
| `--id` | string | | Filter by BPMN process ID (alias) |
|
|
1017
|
+
| `--processDefinitionId` | string | | Filter by process definition ID |
|
|
1018
|
+
| `--errorType` | string | | Filter by error type |
|
|
1019
|
+
| `--errorMessage` | string | | Filter by error message |
|
|
1020
|
+
| `--ierrorMessage` | string | | Case-insensitive filter by error message |
|
|
1021
|
+
| `--iid` | string | | Case-insensitive filter by BPMN process ID |
|
|
1022
|
+
|
|
1023
|
+
</details>
|
|
1024
|
+
|
|
1025
|
+
<details>
|
|
1026
|
+
<summary><code>jobs</code></summary>
|
|
1027
|
+
|
|
1028
|
+
| Flag | Type | Required | Description |
|
|
1029
|
+
|------|------|----------|-------------|
|
|
1030
|
+
| `--state` | string | | Filter by state |
|
|
1031
|
+
| `--type` | string | | Filter by job type |
|
|
1032
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
1033
|
+
| `--processDefinitionKey` | string | | Filter by process definition key |
|
|
1034
|
+
| `--itype` | string | | Case-insensitive filter by job type |
|
|
1035
|
+
|
|
1036
|
+
</details>
|
|
1037
|
+
|
|
1038
|
+
<details>
|
|
1039
|
+
<summary><code>variable</code> (<code>var</code>, <code>vars</code>)</summary>
|
|
1040
|
+
|
|
1041
|
+
| Flag | Type | Required | Description |
|
|
1042
|
+
|------|------|----------|-------------|
|
|
1043
|
+
| `--name` | string | | Filter by variable name |
|
|
1044
|
+
| `--value` | string | | Filter by value |
|
|
1045
|
+
| `--processInstanceKey` | string | | Filter by process instance key |
|
|
1046
|
+
| `--scopeKey` | string | | Filter by scope key |
|
|
1047
|
+
| `--fullValue` | boolean | | Return full variable values (not truncated) |
|
|
1048
|
+
| `--iname` | string | | Case-insensitive filter by name |
|
|
1049
|
+
| `--ivalue` | string | | Case-insensitive filter by value |
|
|
1050
|
+
|
|
1051
|
+
</details>
|
|
1052
|
+
|
|
1053
|
+
<details>
|
|
1054
|
+
<summary><code>user</code></summary>
|
|
1055
|
+
|
|
1056
|
+
| Flag | Type | Required | Description |
|
|
1057
|
+
|------|------|----------|-------------|
|
|
1058
|
+
| `--username` | string | | Filter by username |
|
|
1059
|
+
| `--name` | string | | Filter by name |
|
|
1060
|
+
| `--email` | string | | Filter by email |
|
|
1061
|
+
|
|
1062
|
+
</details>
|
|
1063
|
+
|
|
1064
|
+
<details>
|
|
1065
|
+
<summary><code>role</code></summary>
|
|
1066
|
+
|
|
1067
|
+
| Flag | Type | Required | Description |
|
|
1068
|
+
|------|------|----------|-------------|
|
|
1069
|
+
| `--roleId` | string | | Filter by role ID |
|
|
1070
|
+
| `--name` | string | | Filter by name |
|
|
1071
|
+
|
|
1072
|
+
</details>
|
|
1073
|
+
|
|
1074
|
+
<details>
|
|
1075
|
+
<summary><code>group</code></summary>
|
|
1076
|
+
|
|
1077
|
+
| Flag | Type | Required | Description |
|
|
1078
|
+
|------|------|----------|-------------|
|
|
1079
|
+
| `--groupId` | string | | Filter by group ID |
|
|
1080
|
+
| `--name` | string | | Filter by name |
|
|
1081
|
+
|
|
1082
|
+
</details>
|
|
1083
|
+
|
|
1084
|
+
<details>
|
|
1085
|
+
<summary><code>tenant</code></summary>
|
|
1086
|
+
|
|
1087
|
+
| Flag | Type | Required | Description |
|
|
1088
|
+
|------|------|----------|-------------|
|
|
1089
|
+
| `--tenantId` | string | | Filter by tenant ID |
|
|
1090
|
+
| `--name` | string | | Filter by name |
|
|
1091
|
+
|
|
1092
|
+
</details>
|
|
1093
|
+
|
|
1094
|
+
<details>
|
|
1095
|
+
<summary><code>authorization</code> (<code>auth</code>)</summary>
|
|
1096
|
+
|
|
1097
|
+
| Flag | Type | Required | Description |
|
|
1098
|
+
|------|------|----------|-------------|
|
|
1099
|
+
| `--ownerId` | string | | Filter by owner ID |
|
|
1100
|
+
| `--ownerType` | string | | Filter by owner type |
|
|
1101
|
+
| `--resourceType` | string | | Filter by resource type |
|
|
1102
|
+
| `--resourceId` | string | | Filter by resource ID |
|
|
1103
|
+
|
|
1104
|
+
</details>
|
|
1105
|
+
|
|
1106
|
+
<details>
|
|
1107
|
+
<summary><code>mapping-rule</code> (<code>mr</code>)</summary>
|
|
1108
|
+
|
|
1109
|
+
| Flag | Type | Required | Description |
|
|
1110
|
+
|------|------|----------|-------------|
|
|
1111
|
+
| `--mappingRuleId` | string | | Filter by mapping rule ID |
|
|
1112
|
+
| `--name` | string | | Filter by name |
|
|
1113
|
+
| `--claimName` | string | | Filter by claim name |
|
|
1114
|
+
| `--claimValue` | string | | Filter by claim value |
|
|
1115
|
+
|
|
1116
|
+
</details>
|
|
1117
|
+
|
|
1118
|
+
**Examples:**
|
|
1119
|
+
|
|
1120
|
+
```bash
|
|
1121
|
+
c8ctl search pi --state=ACTIVE # Search for active process instances
|
|
1122
|
+
c8ctl search pd --bpmnProcessId=myProcess # Search process definitions by ID
|
|
1123
|
+
c8ctl search pd --name='*main*' # Search process definitions with wildcard
|
|
1124
|
+
c8ctl search ut --assignee=john # Search user tasks assigned to john
|
|
1125
|
+
c8ctl search inc --state=ACTIVE # Search for active incidents
|
|
1126
|
+
c8ctl search jobs --type=myJobType # Search jobs by type
|
|
1127
|
+
c8ctl search jobs --type='*service*' # Search jobs with type containing "service"
|
|
1128
|
+
c8ctl search variables --name=myVar # Search for variables by name
|
|
1129
|
+
c8ctl search variables --value=foo # Search for variables by value
|
|
1130
|
+
c8ctl search variables --processInstanceKey=123 --fullValue # Search variables with full values
|
|
1131
|
+
c8ctl search pd --iname='*order*' # Case-insensitive search by name
|
|
1132
|
+
c8ctl search ut --iassignee=John # Case-insensitive search by assignee
|
|
1133
|
+
```
|
|
1134
|
+
|
|
1135
|
+
---
|
|
1136
|
+
|
|
1137
|
+
#### `get`
|
|
1138
|
+
|
|
1139
|
+
Get a resource by key
|
|
1140
|
+
|
|
1141
|
+
**Resources:** pi (process-instance), pd (process-definition), inc (incident), topology, form, user, role, group, tenant, auth (authorization), mapping-rule
|
|
1142
|
+
|
|
1143
|
+
**Positional arguments:**
|
|
1144
|
+
|
|
1145
|
+
- **process-definition:** `<key>` (required)
|
|
1146
|
+
- **process-instance:** `<key>` (required)
|
|
1147
|
+
- **incident:** `<key>` (required)
|
|
1148
|
+
- **user:** `<username>` (required)
|
|
1149
|
+
- **role:** `<roleId>` (required)
|
|
1150
|
+
- **group:** `<groupId>` (required)
|
|
1151
|
+
- **tenant:** `<tenantId>` (required)
|
|
1152
|
+
- **authorization:** `<authorizationKey>` (required)
|
|
1153
|
+
- **mapping-rule:** `<mappingRuleId>` (required)
|
|
1154
|
+
- **form:** `<key>` (required)
|
|
1155
|
+
|
|
1156
|
+
**Resource-specific flags:**
|
|
1157
|
+
|
|
1158
|
+
<details>
|
|
1159
|
+
<summary><code>process-definition</code> (<code>pd</code>)</summary>
|
|
1160
|
+
|
|
1161
|
+
| Flag | Type | Required | Description |
|
|
1162
|
+
|------|------|----------|-------------|
|
|
1163
|
+
| `--xml` | boolean | | Get BPMN XML (process definitions) |
|
|
1164
|
+
|
|
1165
|
+
</details>
|
|
1166
|
+
|
|
1167
|
+
<details>
|
|
1168
|
+
<summary><code>form</code></summary>
|
|
1169
|
+
|
|
1170
|
+
| Flag | Type | Required | Description |
|
|
1171
|
+
|------|------|----------|-------------|
|
|
1172
|
+
| `--userTask` | boolean | | Get form for user task |
|
|
1173
|
+
| `--ut` | boolean | | Alias for --userTask |
|
|
1174
|
+
| `--processDefinition` | boolean | | Get form for process definition |
|
|
1175
|
+
| `--pd` | boolean | | Alias for --processDefinition |
|
|
1176
|
+
|
|
1177
|
+
</details>
|
|
1178
|
+
|
|
1179
|
+
<details>
|
|
1180
|
+
<summary><code>process-instance</code> (<code>pi</code>)</summary>
|
|
1181
|
+
|
|
1182
|
+
| Flag | Type | Required | Description |
|
|
1183
|
+
|------|------|----------|-------------|
|
|
1184
|
+
| `--variables` | boolean | | Include variables in output |
|
|
1185
|
+
|
|
1186
|
+
</details>
|
|
1187
|
+
|
|
1188
|
+
**Examples:**
|
|
1189
|
+
|
|
1190
|
+
```bash
|
|
1191
|
+
c8ctl get pi 123456 # Get process instance by key
|
|
1192
|
+
c8ctl get pi 123456 --variables # Get process instance with variables
|
|
1193
|
+
c8ctl get pd 123456 # Get process definition by key
|
|
1194
|
+
c8ctl get pd 123456 --xml # Get process definition XML
|
|
1195
|
+
c8ctl get form 123456 # Get form (searches both user task and process definition)
|
|
1196
|
+
c8ctl get form 123456 --ut # Get form for user task only
|
|
1197
|
+
c8ctl get form 123456 --pd # Get start form for process definition only
|
|
1198
|
+
c8ctl get user john # Get user by username
|
|
1199
|
+
```
|
|
1200
|
+
|
|
1201
|
+
---
|
|
1202
|
+
|
|
1203
|
+
#### `create`
|
|
1204
|
+
|
|
1205
|
+
Create a resource (process instance, identity)
|
|
1206
|
+
|
|
1207
|
+
**Resources:** pi (process-instance), user, role, group, tenant, auth (authorization), mapping-rule
|
|
1208
|
+
|
|
1209
|
+
**Verb-level flags:**
|
|
1210
|
+
|
|
1211
|
+
| Flag | Type | Required | Description |
|
|
1212
|
+
|------|------|----------|-------------|
|
|
1213
|
+
| `--processDefinitionId` | string | | Process definition ID (BPMN process ID) |
|
|
1214
|
+
| `--id` | string | | Process definition ID (alias for --processDefinitionId) |
|
|
1215
|
+
| `--bpmnProcessId` | string | | BPMN process ID (alias for --processDefinitionId) |
|
|
1216
|
+
| `--variables` | string | | JSON variables |
|
|
1217
|
+
| `--awaitCompletion` | boolean | | Wait for process to complete |
|
|
1218
|
+
| `--fetchVariables` | boolean | | Fetch result variables on completion |
|
|
1219
|
+
| `--requestTimeout` | string | | Await timeout in milliseconds |
|
|
1220
|
+
| `--username` | string | | Username |
|
|
1221
|
+
| `--name` | string | | Display name |
|
|
1222
|
+
| `--email` | string | | Email address |
|
|
1223
|
+
| `--password` | string | | Password |
|
|
1224
|
+
| `--roleId` | string | | Role ID |
|
|
1225
|
+
| `--groupId` | string | | Group ID |
|
|
1226
|
+
| `--tenantId` | string | | Tenant ID |
|
|
1227
|
+
| `--mappingRuleId` | string | | Mapping rule ID |
|
|
1228
|
+
| `--claimName` | string | | Claim name |
|
|
1229
|
+
| `--claimValue` | string | | Claim value |
|
|
1230
|
+
|
|
1231
|
+
**Resource-specific flags:**
|
|
1232
|
+
|
|
1233
|
+
<details>
|
|
1234
|
+
<summary><code>authorization</code> (<code>auth</code>)</summary>
|
|
1235
|
+
|
|
1236
|
+
| Flag | Type | Required | Description |
|
|
1237
|
+
|------|------|----------|-------------|
|
|
1238
|
+
| `--ownerId` | string | Yes | Authorization owner ID |
|
|
1239
|
+
| `--ownerType` | string | Yes | Authorization owner type |
|
|
1240
|
+
| `--resourceType` | string | Yes | Authorization resource type |
|
|
1241
|
+
| `--resourceId` | string | Yes | Authorization resource ID |
|
|
1242
|
+
| `--permissions` | string | Yes | Comma-separated permissions |
|
|
1243
|
+
|
|
1244
|
+
</details>
|
|
1245
|
+
|
|
1246
|
+
**Examples:**
|
|
1247
|
+
|
|
1248
|
+
```bash
|
|
1249
|
+
c8ctl create pi --id=myProcess # Create a process instance
|
|
1250
|
+
c8ctl create pi --id=myProcess --awaitCompletion # Create and await completion
|
|
1251
|
+
c8ctl create user --username=john --name='John Doe' --email=john@example.com --password=secret # Create a user
|
|
1252
|
+
```
|
|
1253
|
+
|
|
1254
|
+
---
|
|
1255
|
+
|
|
1256
|
+
#### `delete`
|
|
1257
|
+
|
|
1258
|
+
Delete a resource by key
|
|
1259
|
+
|
|
1260
|
+
**Usage:** `c8ctl delete <resource> <key>`
|
|
1261
|
+
|
|
1262
|
+
**Resources:** user, role, group, tenant, auth (authorization), mapping-rule
|
|
1263
|
+
|
|
1264
|
+
**Positional arguments:**
|
|
1265
|
+
|
|
1266
|
+
- **user:** `<username>` (required)
|
|
1267
|
+
- **role:** `<roleId>` (required)
|
|
1268
|
+
- **group:** `<groupId>` (required)
|
|
1269
|
+
- **tenant:** `<tenantId>` (required)
|
|
1270
|
+
- **authorization:** `<authorizationKey>` (required)
|
|
1271
|
+
- **mapping-rule:** `<mappingRuleId>` (required)
|
|
1272
|
+
|
|
1273
|
+
**Examples:**
|
|
1274
|
+
|
|
1275
|
+
```bash
|
|
1276
|
+
c8ctl delete user john # Delete user
|
|
1277
|
+
```
|
|
1278
|
+
|
|
1279
|
+
---
|
|
1280
|
+
|
|
1281
|
+
#### `cancel`
|
|
1282
|
+
|
|
1283
|
+
Cancel a process instance
|
|
1284
|
+
|
|
1285
|
+
**Usage:** `c8ctl cancel <resource> <key>`
|
|
1286
|
+
|
|
1287
|
+
**Resources:** pi (process-instance)
|
|
1288
|
+
|
|
1289
|
+
**Positional arguments:**
|
|
1290
|
+
|
|
1291
|
+
- **process-instance:** `<key>` (required)
|
|
1292
|
+
|
|
1293
|
+
---
|
|
1294
|
+
|
|
1295
|
+
#### `await`
|
|
1296
|
+
|
|
1297
|
+
Create and await process instance completion (server-side waiting)
|
|
1298
|
+
|
|
1299
|
+
**Usage:** `c8ctl await <resource>`
|
|
1300
|
+
|
|
1301
|
+
**Resources:** pi (process-instance)
|
|
1302
|
+
|
|
1303
|
+
**Flags:**
|
|
1304
|
+
|
|
1305
|
+
| Flag | Type | Required | Description |
|
|
1306
|
+
|------|------|----------|-------------|
|
|
1307
|
+
| `--processDefinitionId` | string | | Process definition ID (BPMN process ID) |
|
|
1308
|
+
| `--id` | string | | Process definition ID (alias for --processDefinitionId) |
|
|
1309
|
+
| `--bpmnProcessId` | string | | BPMN process ID (alias for --processDefinitionId) |
|
|
1310
|
+
| `--variables` | string | | JSON variables |
|
|
1311
|
+
| `--fetchVariables` | boolean | | Fetch result variables on completion |
|
|
1312
|
+
| `--requestTimeout` | string | | Await timeout in milliseconds |
|
|
1313
|
+
|
|
1314
|
+
**Examples:**
|
|
1315
|
+
|
|
1316
|
+
```bash
|
|
1317
|
+
c8ctl await pi --id=myProcess # Create and wait for completion
|
|
1318
|
+
```
|
|
1319
|
+
|
|
1320
|
+
---
|
|
1321
|
+
|
|
1322
|
+
#### `complete`
|
|
1323
|
+
|
|
1324
|
+
Complete a user task or job
|
|
1325
|
+
|
|
1326
|
+
**Usage:** `c8ctl complete <resource> <key>`
|
|
1327
|
+
|
|
1328
|
+
**Resources:** ut (user-task), job
|
|
1329
|
+
|
|
1330
|
+
**Positional arguments:**
|
|
1331
|
+
|
|
1332
|
+
- **user-task:** `<key>` (required)
|
|
1333
|
+
- **job:** `<key>` (required)
|
|
1334
|
+
|
|
1335
|
+
**Flags:**
|
|
1336
|
+
|
|
1337
|
+
| Flag | Type | Required | Description |
|
|
1338
|
+
|------|------|----------|-------------|
|
|
1339
|
+
| `--variables` | string | | JSON variables |
|
|
1340
|
+
|
|
1341
|
+
---
|
|
1342
|
+
|
|
1343
|
+
#### `fail`
|
|
1344
|
+
|
|
1345
|
+
Mark a job as failed with optional error message and retry count
|
|
1346
|
+
|
|
1347
|
+
**Resources:** job
|
|
1348
|
+
|
|
1349
|
+
**Positional arguments:**
|
|
1350
|
+
|
|
1351
|
+
- **job:** `<key>` (required)
|
|
1352
|
+
|
|
1353
|
+
**Flags:**
|
|
1354
|
+
|
|
1355
|
+
| Flag | Type | Required | Description |
|
|
1356
|
+
|------|------|----------|-------------|
|
|
1357
|
+
| `--retries` | string | | Remaining retries |
|
|
1358
|
+
| `--errorMessage` | string | | Error message |
|
|
1359
|
+
|
|
1360
|
+
---
|
|
1361
|
+
|
|
1362
|
+
#### `activate`
|
|
1363
|
+
|
|
1364
|
+
Activate jobs of a specific type for processing
|
|
1365
|
+
|
|
1366
|
+
**Resources:** jobs
|
|
1367
|
+
|
|
1368
|
+
**Positional arguments:**
|
|
1369
|
+
|
|
1370
|
+
- **jobs:** `<type>` (required)
|
|
1371
|
+
|
|
1372
|
+
**Flags:**
|
|
1373
|
+
|
|
1374
|
+
| Flag | Type | Required | Description |
|
|
1375
|
+
|------|------|----------|-------------|
|
|
1376
|
+
| `--maxJobsToActivate` | string | | Maximum number of jobs to activate |
|
|
1377
|
+
| `--timeout` | string | | Job timeout in milliseconds |
|
|
1378
|
+
| `--worker` | string | | Worker name |
|
|
1379
|
+
|
|
1380
|
+
---
|
|
1381
|
+
|
|
1382
|
+
#### `resolve`
|
|
1383
|
+
|
|
1384
|
+
Resolve an incident (marks resolved, allows process to continue)
|
|
1385
|
+
|
|
1386
|
+
**Resources:** inc (incident)
|
|
1387
|
+
|
|
1388
|
+
**Positional arguments:**
|
|
1389
|
+
|
|
1390
|
+
- **incident:** `<key>` (required)
|
|
1391
|
+
|
|
1392
|
+
---
|
|
1393
|
+
|
|
1394
|
+
#### `publish`
|
|
1395
|
+
|
|
1396
|
+
Publish a message for message correlation
|
|
1397
|
+
|
|
1398
|
+
**Resources:** msg (message)
|
|
1399
|
+
|
|
1400
|
+
**Positional arguments:**
|
|
1401
|
+
|
|
1402
|
+
- **message:** `<name>` (required)
|
|
1403
|
+
|
|
1404
|
+
**Flags:**
|
|
1405
|
+
|
|
1406
|
+
| Flag | Type | Required | Description |
|
|
1407
|
+
|------|------|----------|-------------|
|
|
1408
|
+
| `--correlationKey` | string | | Correlation key |
|
|
1409
|
+
| `--variables` | string | | JSON variables |
|
|
1410
|
+
| `--timeToLive` | string | | Time to live in milliseconds |
|
|
1411
|
+
|
|
1412
|
+
---
|
|
1413
|
+
|
|
1414
|
+
#### `correlate`
|
|
1415
|
+
|
|
1416
|
+
Correlate a message to a specific process instance
|
|
1417
|
+
|
|
1418
|
+
**Resources:** msg (message)
|
|
1419
|
+
|
|
1420
|
+
**Positional arguments:**
|
|
1421
|
+
|
|
1422
|
+
- **message:** `<name>` (required)
|
|
1423
|
+
|
|
1424
|
+
**Flags:**
|
|
1425
|
+
|
|
1426
|
+
| Flag | Type | Required | Description |
|
|
1427
|
+
|------|------|----------|-------------|
|
|
1428
|
+
| `--correlationKey` | string | Yes | Correlation key |
|
|
1429
|
+
| `--variables` | string | | JSON variables |
|
|
1430
|
+
| `--timeToLive` | string | | Time to live in milliseconds |
|
|
1431
|
+
|
|
1432
|
+
---
|
|
1433
|
+
|
|
1434
|
+
#### `set`
|
|
1435
|
+
|
|
1436
|
+
Set variables on an element instance (process instance or flow element scope). Variables are propagated to the outermost scope by default; use --local to restrict to the specified scope.
|
|
1437
|
+
|
|
1438
|
+
**Usage:** `c8ctl set variable <key>`
|
|
1439
|
+
|
|
1440
|
+
**Resources:** variable
|
|
1441
|
+
|
|
1442
|
+
**Positional arguments:**
|
|
1443
|
+
|
|
1444
|
+
- **variable:** `<key>` (required)
|
|
1445
|
+
|
|
1446
|
+
**Flags:**
|
|
1447
|
+
|
|
1448
|
+
| Flag | Type | Required | Description |
|
|
1449
|
+
|------|------|----------|-------------|
|
|
1450
|
+
| `--variables` | string | Yes | JSON object of variables to set (required) |
|
|
1451
|
+
| `--local` | boolean | | Set variables in local scope only (default: propagate to outermost scope) |
|
|
1452
|
+
|
|
1453
|
+
**Examples:**
|
|
1454
|
+
|
|
1455
|
+
```bash
|
|
1456
|
+
c8ctl set variable 2251799813685249 --variables='{"status":"approved"}' # Set variables on a process instance
|
|
1457
|
+
c8ctl set variable 2251799813685249 --variables='{"x":1}' --local # Set variables in local scope only
|
|
1458
|
+
```
|
|
1459
|
+
|
|
1460
|
+
---
|
|
1461
|
+
|
|
1462
|
+
#### `deploy`
|
|
1463
|
+
|
|
1464
|
+
Deploy files to Camunda (auto-discovers deployable files in directories)
|
|
1465
|
+
|
|
1466
|
+
**Usage:** `c8ctl deploy [path...]`
|
|
1467
|
+
|
|
1468
|
+
**Flags:**
|
|
1469
|
+
|
|
1470
|
+
| Flag | Type | Required | Description |
|
|
1471
|
+
|------|------|----------|-------------|
|
|
1472
|
+
| `--force` | boolean | | Deploy any file type, ignoring the default extension allow-list |
|
|
1473
|
+
|
|
1474
|
+
**Examples:**
|
|
1475
|
+
|
|
1476
|
+
```bash
|
|
1477
|
+
c8ctl deploy ./my-process.bpmn # Deploy a BPMN file
|
|
1478
|
+
```
|
|
1479
|
+
|
|
1480
|
+
---
|
|
1481
|
+
|
|
1482
|
+
#### `run`
|
|
1483
|
+
|
|
1484
|
+
Deploy and start a process instance from a BPMN file
|
|
1485
|
+
|
|
1486
|
+
**Usage:** `c8ctl run <path>`
|
|
1487
|
+
|
|
1488
|
+
**Flags:**
|
|
1489
|
+
|
|
1490
|
+
| Flag | Type | Required | Description |
|
|
1491
|
+
|------|------|----------|-------------|
|
|
1492
|
+
| `--variables` | string | | JSON variables |
|
|
1493
|
+
| `--force` | boolean | | Deploy any file type, ignoring the default extension allow-list |
|
|
1494
|
+
|
|
1495
|
+
**Examples:**
|
|
1496
|
+
|
|
1497
|
+
```bash
|
|
1498
|
+
c8ctl run ./my-process.bpmn # Deploy and start process
|
|
1499
|
+
```
|
|
1500
|
+
|
|
1501
|
+
---
|
|
1502
|
+
|
|
1503
|
+
#### `assign`
|
|
1504
|
+
|
|
1505
|
+
Assign a resource to a target (--to-user, --to-group, etc.)
|
|
1506
|
+
|
|
1507
|
+
**Usage:** `c8ctl assign <resource> <id>`
|
|
1508
|
+
|
|
1509
|
+
**Resources:** role, user, group, mapping-rule
|
|
1510
|
+
|
|
1511
|
+
**Positional arguments:**
|
|
1512
|
+
|
|
1513
|
+
- **role:** `<roleId>` (required)
|
|
1514
|
+
- **user:** `<username>` (required)
|
|
1515
|
+
- **group:** `<groupId>` (required)
|
|
1516
|
+
- **mapping-rule:** `<mappingRuleId>` (required)
|
|
1517
|
+
|
|
1518
|
+
**Flags:**
|
|
1519
|
+
|
|
1520
|
+
| Flag | Type | Required | Description |
|
|
1521
|
+
|------|------|----------|-------------|
|
|
1522
|
+
| `--to-user` | string | | Target user ID |
|
|
1523
|
+
| `--to-group` | string | | Target group ID |
|
|
1524
|
+
| `--to-tenant` | string | | Target tenant ID |
|
|
1525
|
+
| `--to-mapping-rule` | string | | Target mapping rule ID |
|
|
1526
|
+
|
|
1527
|
+
**Examples:**
|
|
1528
|
+
|
|
1529
|
+
```bash
|
|
1530
|
+
c8ctl assign role admin --to-user=john # Assign role to user
|
|
1531
|
+
```
|
|
1532
|
+
|
|
1533
|
+
---
|
|
1534
|
+
|
|
1535
|
+
#### `unassign`
|
|
1536
|
+
|
|
1537
|
+
Unassign a resource from a target (--from-user, --from-group, etc.)
|
|
1538
|
+
|
|
1539
|
+
**Usage:** `c8ctl unassign <resource> <id>`
|
|
1540
|
+
|
|
1541
|
+
**Resources:** role, user, group, mapping-rule
|
|
1542
|
+
|
|
1543
|
+
**Positional arguments:**
|
|
1544
|
+
|
|
1545
|
+
- **role:** `<roleId>` (required)
|
|
1546
|
+
- **user:** `<username>` (required)
|
|
1547
|
+
- **group:** `<groupId>` (required)
|
|
1548
|
+
- **mapping-rule:** `<mappingRuleId>` (required)
|
|
1549
|
+
|
|
1550
|
+
**Flags:**
|
|
1551
|
+
|
|
1552
|
+
| Flag | Type | Required | Description |
|
|
1553
|
+
|------|------|----------|-------------|
|
|
1554
|
+
| `--from-user` | string | | Source user ID |
|
|
1555
|
+
| `--from-group` | string | | Source group ID |
|
|
1556
|
+
| `--from-tenant` | string | | Source tenant ID |
|
|
1557
|
+
| `--from-mapping-rule` | string | | Source mapping rule ID |
|
|
1558
|
+
|
|
1559
|
+
**Examples:**
|
|
1560
|
+
|
|
1561
|
+
```bash
|
|
1562
|
+
c8ctl unassign role admin --from-user=john # Unassign role from user
|
|
1563
|
+
```
|
|
1564
|
+
|
|
1565
|
+
---
|
|
1566
|
+
|
|
1567
|
+
#### `watch`
|
|
1568
|
+
|
|
1569
|
+
Watch files for changes and auto-deploy
|
|
1570
|
+
|
|
1571
|
+
**Usage:** `c8ctl watch [path...]`
|
|
1572
|
+
|
|
1573
|
+
**Aliases:** `w`
|
|
1574
|
+
|
|
1575
|
+
**Flags:**
|
|
1576
|
+
|
|
1577
|
+
| Flag | Type | Required | Description |
|
|
1578
|
+
|------|------|----------|-------------|
|
|
1579
|
+
| `--force` | boolean | | Continue watching after all deployment errors |
|
|
1580
|
+
| `--extensions` | string | | Comma-separated list of file extensions to watch (e.g. .bpmn,.dmn,.form) |
|
|
1581
|
+
|
|
1582
|
+
**Examples:**
|
|
1583
|
+
|
|
1584
|
+
```bash
|
|
1585
|
+
c8ctl watch ./src # Watch directory for changes
|
|
1586
|
+
```
|
|
1587
|
+
|
|
1588
|
+
---
|
|
1589
|
+
|
|
1590
|
+
#### `open`
|
|
1591
|
+
|
|
1592
|
+
Open Camunda web app in browser
|
|
1593
|
+
|
|
1594
|
+
**Usage:** `c8ctl open <app>`
|
|
1595
|
+
|
|
1596
|
+
**Resources:** operate, tasklist, modeler, optimize
|
|
1597
|
+
|
|
1598
|
+
**Examples:**
|
|
1599
|
+
|
|
1600
|
+
```bash
|
|
1601
|
+
c8ctl open operate # Open Camunda Operate in browser
|
|
1602
|
+
c8ctl open tasklist # Open Camunda Tasklist in browser
|
|
1603
|
+
c8ctl open operate --profile=prod # Open Operate using a specific profile
|
|
1604
|
+
```
|
|
1605
|
+
|
|
1606
|
+
---
|
|
1607
|
+
|
|
1608
|
+
#### `add`
|
|
1609
|
+
|
|
1610
|
+
Add a profile
|
|
1611
|
+
|
|
1612
|
+
**Resources:** profile
|
|
1613
|
+
|
|
1614
|
+
**Positional arguments:**
|
|
1615
|
+
|
|
1616
|
+
- **profile:** `<name>` (required)
|
|
1617
|
+
|
|
1618
|
+
**Flags:**
|
|
1619
|
+
|
|
1620
|
+
| Flag | Type | Required | Description |
|
|
1621
|
+
|------|------|----------|-------------|
|
|
1622
|
+
| `--baseUrl` | string | | Cluster base URL |
|
|
1623
|
+
| `--clientId` | string | | OAuth client ID |
|
|
1624
|
+
| `--clientSecret` | string | | OAuth client secret |
|
|
1625
|
+
| `--audience` | string | | OAuth audience |
|
|
1626
|
+
| `--oAuthUrl` | string | | OAuth token URL |
|
|
1627
|
+
| `--defaultTenantId` | string | | Default tenant ID |
|
|
1628
|
+
| `--username` | string | | Basic auth username |
|
|
1629
|
+
| `--password` | string | | Basic auth password |
|
|
1630
|
+
| `--from-file` | string | | Import from .env file |
|
|
1631
|
+
| `--from-env` | boolean | | Import from environment variables |
|
|
1632
|
+
|
|
1633
|
+
---
|
|
1634
|
+
|
|
1635
|
+
#### `remove`
|
|
1636
|
+
|
|
1637
|
+
Remove a profile (alias: rm)
|
|
1638
|
+
|
|
1639
|
+
**Usage:** `c8ctl remove profile <name>`
|
|
1640
|
+
|
|
1641
|
+
**Aliases:** `rm`
|
|
1642
|
+
|
|
1643
|
+
**Resources:** profile, plugin
|
|
1644
|
+
|
|
1645
|
+
**Positional arguments:**
|
|
1646
|
+
|
|
1647
|
+
- **profile:** `<name>` (required)
|
|
1648
|
+
- **plugin:** `<package>` (required)
|
|
1649
|
+
|
|
1650
|
+
**Flags:**
|
|
1651
|
+
|
|
1652
|
+
| Flag | Type | Required | Description |
|
|
1653
|
+
|------|------|----------|-------------|
|
|
1654
|
+
| `--none` | boolean | | Clear active profile |
|
|
1655
|
+
|
|
1656
|
+
---
|
|
1657
|
+
|
|
1658
|
+
#### `load`
|
|
1659
|
+
|
|
1660
|
+
Load a c8ctl plugin (npm registry or URL)
|
|
1661
|
+
|
|
1662
|
+
**Usage:** `c8ctl load plugin [name|--from url]`
|
|
1663
|
+
|
|
1664
|
+
**Resources:** plugin
|
|
1665
|
+
|
|
1666
|
+
**Positional arguments:**
|
|
1667
|
+
|
|
1668
|
+
- **plugin:** `<package>` (optional)
|
|
1669
|
+
|
|
1670
|
+
**Flags:**
|
|
1671
|
+
|
|
1672
|
+
| Flag | Type | Required | Description |
|
|
1673
|
+
|------|------|----------|-------------|
|
|
1674
|
+
| `--from` | string | | Load plugin from URL |
|
|
1675
|
+
|
|
1676
|
+
**Examples:**
|
|
1677
|
+
|
|
1678
|
+
```bash
|
|
1679
|
+
c8ctl load plugin my-plugin # Load plugin from npm registry
|
|
1680
|
+
c8ctl load plugin --from https://github.com/org/plugin # Load plugin from URL
|
|
1681
|
+
```
|
|
1682
|
+
|
|
1683
|
+
---
|
|
1684
|
+
|
|
1685
|
+
#### `unload`
|
|
1686
|
+
|
|
1687
|
+
Unload a c8ctl plugin (npm uninstall wrapper)
|
|
1688
|
+
|
|
1689
|
+
**Usage:** `c8ctl unload plugin <name>`
|
|
1690
|
+
|
|
1691
|
+
**Aliases:** `rm`
|
|
1692
|
+
|
|
1693
|
+
**Resources:** plugin
|
|
1694
|
+
|
|
1695
|
+
**Positional arguments:**
|
|
1696
|
+
|
|
1697
|
+
- **plugin:** `<package>` (required)
|
|
1698
|
+
|
|
1699
|
+
**Flags:**
|
|
1700
|
+
|
|
1701
|
+
| Flag | Type | Required | Description |
|
|
1702
|
+
|------|------|----------|-------------|
|
|
1703
|
+
| `--force` | boolean | | Force unload without confirmation |
|
|
1704
|
+
|
|
1705
|
+
---
|
|
1706
|
+
|
|
1707
|
+
#### `upgrade`
|
|
1708
|
+
|
|
1709
|
+
Upgrade a plugin (respects source type)
|
|
1710
|
+
|
|
1711
|
+
**Usage:** `c8ctl upgrade plugin <name> [version]`
|
|
1712
|
+
|
|
1713
|
+
**Resources:** plugin
|
|
1714
|
+
|
|
1715
|
+
**Positional arguments:**
|
|
1716
|
+
|
|
1717
|
+
- **plugin:** `<package>` (required), `<version>` (optional)
|
|
1718
|
+
|
|
1719
|
+
**Examples:**
|
|
1720
|
+
|
|
1721
|
+
```bash
|
|
1722
|
+
c8ctl upgrade plugin my-plugin # Upgrade plugin to latest version
|
|
1723
|
+
c8ctl upgrade plugin my-plugin 1.2.3 # Upgrade plugin to a specific version (source-aware)
|
|
1724
|
+
```
|
|
1725
|
+
|
|
1726
|
+
---
|
|
1727
|
+
|
|
1728
|
+
#### `downgrade`
|
|
1729
|
+
|
|
1730
|
+
Downgrade a plugin to a specific version
|
|
1731
|
+
|
|
1732
|
+
**Usage:** `c8ctl downgrade plugin <name> <version>`
|
|
1733
|
+
|
|
1734
|
+
**Resources:** plugin
|
|
1735
|
+
|
|
1736
|
+
**Positional arguments:**
|
|
1737
|
+
|
|
1738
|
+
- **plugin:** `<package>` (required), `<version>` (required)
|
|
1739
|
+
|
|
1740
|
+
---
|
|
1741
|
+
|
|
1742
|
+
#### `sync`
|
|
1743
|
+
|
|
1744
|
+
Synchronize plugins from registry (rebuild/reinstall)
|
|
1745
|
+
|
|
1746
|
+
**Resources:** plugin
|
|
1747
|
+
|
|
1748
|
+
**Examples:**
|
|
1749
|
+
|
|
1750
|
+
```bash
|
|
1751
|
+
c8ctl sync plugin # Synchronize plugins
|
|
1752
|
+
```
|
|
1753
|
+
|
|
1754
|
+
---
|
|
1755
|
+
|
|
1756
|
+
#### `init`
|
|
1757
|
+
|
|
1758
|
+
Create a new plugin from TypeScript template
|
|
1759
|
+
|
|
1760
|
+
**Resources:** plugin
|
|
1761
|
+
|
|
1762
|
+
**Positional arguments:**
|
|
1763
|
+
|
|
1764
|
+
- **plugin:** `<name>` (optional)
|
|
1765
|
+
|
|
1766
|
+
**Examples:**
|
|
1767
|
+
|
|
1768
|
+
```bash
|
|
1769
|
+
c8ctl init plugin my-plugin # Create new plugin from template (c8ctl-plugin-my-plugin)
|
|
1770
|
+
```
|
|
1771
|
+
|
|
1772
|
+
---
|
|
1773
|
+
|
|
1774
|
+
#### `use`
|
|
1775
|
+
|
|
1776
|
+
Set active profile or tenant
|
|
1777
|
+
|
|
1778
|
+
**Usage:** `c8ctl use profile|tenant`
|
|
1779
|
+
|
|
1780
|
+
**Resources:** profile, tenant
|
|
1781
|
+
|
|
1782
|
+
**Positional arguments:**
|
|
1783
|
+
|
|
1784
|
+
- **profile:** `<name>` (optional)
|
|
1785
|
+
- **tenant:** `<tenantId>` (required)
|
|
1786
|
+
|
|
1787
|
+
**Flags:**
|
|
1788
|
+
|
|
1789
|
+
| Flag | Type | Required | Description |
|
|
1790
|
+
|------|------|----------|-------------|
|
|
1791
|
+
| `--none` | boolean | | Clear active profile/tenant |
|
|
1792
|
+
|
|
1793
|
+
**Examples:**
|
|
1794
|
+
|
|
1795
|
+
```bash
|
|
1796
|
+
c8ctl use profile prod # Set active profile
|
|
1797
|
+
```
|
|
1798
|
+
|
|
1799
|
+
---
|
|
1800
|
+
|
|
1801
|
+
#### `output`
|
|
1802
|
+
|
|
1803
|
+
Show or set output format
|
|
1804
|
+
|
|
1805
|
+
**Usage:** `c8ctl output [json|text]`
|
|
1806
|
+
|
|
1807
|
+
**Resources:** json, text
|
|
1808
|
+
|
|
1809
|
+
**Examples:**
|
|
1810
|
+
|
|
1811
|
+
```bash
|
|
1812
|
+
c8ctl output json # Switch to JSON output
|
|
1813
|
+
```
|
|
1814
|
+
|
|
1815
|
+
---
|
|
1816
|
+
|
|
1817
|
+
#### `completion`
|
|
1818
|
+
|
|
1819
|
+
Generate shell completion script
|
|
1820
|
+
|
|
1821
|
+
**Usage:** `c8ctl completion bash|zsh|fish|install`
|
|
1822
|
+
|
|
1823
|
+
**Resources:** bash, zsh, fish, install
|
|
1824
|
+
|
|
1825
|
+
**Resource-specific flags:**
|
|
1826
|
+
|
|
1827
|
+
<details>
|
|
1828
|
+
<summary><code>install</code></summary>
|
|
1829
|
+
|
|
1830
|
+
| Flag | Type | Required | Description |
|
|
1831
|
+
|------|------|----------|-------------|
|
|
1832
|
+
| `--shell` | string | | Shell to install completions for (bash, zsh, fish) |
|
|
1833
|
+
|
|
1834
|
+
</details>
|
|
1835
|
+
|
|
1836
|
+
**Examples:**
|
|
1837
|
+
|
|
1838
|
+
```bash
|
|
1839
|
+
c8ctl completion bash # Generate bash completion script
|
|
1840
|
+
c8ctl completion install # Auto-detect shell and install completions (auto-refreshes on upgrade)
|
|
1841
|
+
c8ctl completion install --shell zsh # Install completions for a specific shell
|
|
1842
|
+
```
|
|
1843
|
+
|
|
1844
|
+
---
|
|
1845
|
+
|
|
1846
|
+
#### `mcp-proxy`
|
|
1847
|
+
|
|
1848
|
+
Start a STDIO MCP proxy (bridges local MCP clients to remote Camunda 8)
|
|
1849
|
+
|
|
1850
|
+
**Usage:** `c8ctl mcp-proxy [mcp-path]`
|
|
1851
|
+
|
|
1852
|
+
---
|
|
1853
|
+
|
|
1854
|
+
#### `feedback`
|
|
1855
|
+
|
|
1856
|
+
Open the feedback page to report issues or request features
|
|
1857
|
+
|
|
1858
|
+
---
|
|
1859
|
+
|
|
1860
|
+
#### `help`
|
|
1861
|
+
|
|
1862
|
+
Show help (run 'c8ctl help \<command>' for details)
|
|
1863
|
+
|
|
1864
|
+
**Usage:** `c8ctl help [command]`
|
|
1865
|
+
|
|
1866
|
+
**Aliases:** `menu`
|
|
1867
|
+
|
|
1868
|
+
---
|
|
1869
|
+
|
|
1870
|
+
#### `which`
|
|
1871
|
+
|
|
1872
|
+
Show active profile
|
|
1873
|
+
|
|
1874
|
+
**Resources:** profile
|
|
1875
|
+
|
|
1876
|
+
**Examples:**
|
|
1877
|
+
|
|
1878
|
+
```bash
|
|
1879
|
+
c8ctl which profile # Show currently active profile
|
|
1880
|
+
```
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
<!-- command-reference:end -->
|
|
1884
|
+
|
|
813
1885
|
## License
|
|
814
1886
|
|
|
815
1887
|
Apache 2.0 - see LICENSE.md
|