Skip to content

Commit c22bfc0

Browse files
authored
Merge pull request #4 from SoftwareAG/development_v10.12
Development v10.12
2 parents 04c2f60 + 0e9e65b commit c22bfc0

File tree

2 files changed

+103
-32
lines changed

2 files changed

+103
-32
lines changed

README.md

Lines changed: 99 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This requires you to provide your tenant domain name, along with a user and pass
44
The --help parameter provides further information on how to use this along with some examples of its usage.
55

66
This CLI tool has been tested against
7-
* webMethods.io Integration v10.11
7+
* webMethods.io Integration v10.12
88

99
# License
1010
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
@@ -28,42 +28,43 @@ node wmiocli.js --help
2828
│ This tool provides command line access to the webMethods.io Integration APIs │
2929
│ Intended to aid usage within DevOps Scenarios for asset deployment │
3030
└──────────────────────────────────────────────────────────────────────────────┘
31-
3231
3332
Usage: wmiocli [options] [command]
3433
3534
Options:
36-
-V, --version output the version number
37-
-d, --domain <tenantDomain> Tenant Doamin Name, e.g.
38-
"tenant.int-aws-us.webmethods.io"
39-
-u, --user <userid> Tenant User ID
40-
-p, --password <password> Tenant User Password
41-
-t, --timeout <delay> timeout in seconds (default: one minute)
42-
--verbose Verbose output
43-
-h, --help display help for command
35+
-V, --version output the version number
36+
-d, --domain <tenantDomain> Tenant Doamin Name, e.g. "tenant.int-aws-us.webmethods.io"
37+
-u, --user <userid> Tenant User ID
38+
-p, --password <password> Tenant User Password
39+
-t, --timeout <delay> timeout in seconds (default: one minute)
40+
--prettyprint Pretty Print JSON output
41+
--verbose Verbose output useful for diagnosing issues
42+
-h, --help display help for command
4443
4544
Commands:
46-
project [project-id] Lists all projects or view an individual project
47-
project-create <project-name> Create project with given name
48-
project-update <project-id> <project-name> Update project with new name
49-
workflow-export <project-id> <workflow-id> <filename> Export workflow with id <workflow-id> from project
50-
<project-id>
51-
workflow-import <project-id> <filename> Import workflow into project <project-id> from file
52-
<filename>
53-
workflow-delete <project-id> <workflow-id> Delete workflow <workflow-id> from project
54-
<project-id>
55-
workflow-execute <project-id> <workflow-id> Execute workflow <workflow-id> from project
56-
<project-id>
57-
workflow-status <project-id> <run-id> Gets Execution status for workflow execution <run-id>
58-
flowservice-export <project-id> <flow-name> <file-name> Export FlowService with name <flow-name> from project
59-
<project-id>
60-
flowservice-import <project-id> <filename> Import FlowService from <filename> into project
61-
<project-id>
62-
flowservice-delete <project-id> <flow-name> Delete FlowService <flow-name> from project
63-
<project-id>
64-
flowservice-execute <project-id> <flow-name> [input-json] Execute FlowService <flow-name> from project
65-
<project-id> with data <input-json>
66-
help [command] display help for command
45+
project [project-name] Lists all projects or view an individual project, specified via project name or uid
46+
project-assets <project-name> Lists project assets from given project name or uid
47+
project-create <project-name> Create project with given name
48+
project-update <project-id> <project-name> Update project with new name
49+
project-delete <project-id> Delete project with given id
50+
project-publish <project-id> <publish-name> <target-tenant-domain-name> <target-user-id> <target-user-password> <assets-json> Pubilsh project to another tenant with given id
51+
project-deploy <projectName> <version> deploy published project with given version into tenant
52+
role [role-id] Lists all roles or views an individual role
53+
role-create <role-name> <role-description> <roles-list> Create roles and specify the permissions for that role. Roles-list should be provided as follows projectName,r,w,e;project name 2,r;
54+
role-update <role-id> <role-name> <role-description> <roles-list> Create roles and specify the permissions for that role. Roles-list should be provided as follows projectName,r,w,e;project name 2,r;
55+
role-delete <roleId> Delete a roles with the given role id
56+
user Lists all users
57+
user-role-assignment <user-id> <role-names> Assigns a user to roles
58+
workflow-export <project-id> <workflow-id> <filename> Export workflow with id <workflow-id> from project <project-id>
59+
workflow-import <project-id> <filename> Import workflow into project <project-id> from file <filename>
60+
workflow-delete <project-id> <workflow-id> Delete workflow <workflow-id> from project <project-id>
61+
workflow-execute <project-id> <workflow-id> Execute workflow <workflow-id> from project <project-id>
62+
workflow-status <project-id> <run-id> Gets Execution status for workflow execution <run-id>
63+
flowservice-export <project-id> <flow-name> <file-name> Export FlowService with name <flow-name> from project <project-id>
64+
flowservice-import <project-id> <filename> Import FlowService from <filename> into project <project-id>
65+
flowservice-delete <project-id> <flow-name> Delete FlowService <flow-name> from project <project-id>
66+
flowservice-execute <project-id> <flow-name> [input-json] Execute FlowService <flow-name> from project <project-id> with data <input-json>
67+
help [command] display help for command
6768
6869
6970
Examples:
@@ -84,7 +85,21 @@ Examples:
8485
-d tenant.int-aws-us.webmethods.io
8586
-u user
8687
-p password
87-
project
88+
project fl65d3aa87fc1783ea5cf8c8
89+
90+
View individual project with given project name:
91+
$ node wmiocli.js
92+
-d tenant.int-aws-us.webmethods.io
93+
-u user
94+
-p password
95+
project Default
96+
97+
View Project assets from project with given name:
98+
$ node wmiocli.js
99+
-d tenant.int-aws-us.webmethods.io
100+
-u user
101+
-p password
102+
project-assets Default
88103
89104
Update Project name:
90105
$ node wmiocli.js
@@ -100,6 +115,27 @@ Examples:
100115
-p password
101116
project-delete fl65d3aa87fc1783ea5cf8c8
102117
118+
Get Project Assets:
119+
$ node wmiocli.js
120+
-d tenant.int-aws-us.webmethods.io
121+
-u user
122+
-p password
123+
project-assets fl65d3aa87fc1783ea5cf8c8
124+
125+
/Publish Project to another tenant:
126+
$ node wmiocli.js
127+
-d tenant.int-aws-us.webmethods.io
128+
-u user
129+
-p password
130+
project-publish fl65d3aa87fc1783ea5cf8c8 'My deployment' 'target.int-aws-us.webmethods.io' 'targetuser' 'targetpassword' '{"output":{"workflows":["fla73a20e13dd6736cf9c355","fl3cfd145262bbc5d44acff3"],"flows":["mapLeads"],"rest_api":[],"soap_api":[],"listener":[],"messaging":[]}}'
131+
132+
133+
/Deploy published Project in the tenant with the given name and deploy version:
134+
$ node wmiocli.js
135+
-d tenant.int-aws-us.webmethods.io
136+
-u user
137+
-p password
138+
project-deploy projectName 1
103139
104140
Workflow
105141
@@ -170,4 +206,35 @@ Examples:
170206
-u user
171207
-p password
172208
flowservice-execute fl65d3aa87fc1783ea5cf8c8 myFlowService
209+
210+
211+
Roles
212+
213+
Get roles list or individual role
214+
$ node wmiocli.js
215+
-d tenant.int-aws-us.webmethods.io
216+
-u user
217+
-p password
218+
role [role-name]
219+
220+
Creates a role
221+
$ node wmiocli.js
222+
-d tenant.int-aws-us.webmethods.io
223+
-u user
224+
-p password
225+
role-create 'rolename' 'role description' 'project 1 name,r,w,e;project 2 name,r;'
226+
227+
Updates a role with a provided Id
228+
$ node wmiocli.js
229+
-d tenant.int-aws-us.webmethods.io
230+
-u user
231+
-p password
232+
role-update 'roleId' 'rolename' 'role description' 'project 1 name,r,w,e;project 2 name,r;'
233+
234+
Delete a role with a provided Id
235+
$ node wmiocli.js
236+
-d tenant.int-aws-us.webmethods.io
237+
-u user
238+
-p password
239+
role-delete 'roleId'
173240
```

thirdparty.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ Version: 2.88.2
1010
Copyright: Mikeal Rogers <mikeal.rogers@gmail.com>
1111
License: Apache-2.0
1212

13+
Name: readline-sync
14+
Version: 1.4.10
15+
Copyright: Copyright (c) 2019 anseki
16+
License: MIT
1317

0 commit comments

Comments
 (0)