Create custom connectors with our developer platform. Know how it works and how to install it. In addition, learn how to create a connector, add triggers, actions, lookups, and authentications to it, deploy it, and share it with other users.
You can also create custom web connectors using the IBM webMethods CLI Connector Builder.
About IBM webMethods CLI Connector Builder
No subtopics in this section
IBM webMethods CLI Connector Builder is a custom Node.js application that you build using a web application’s APIs. So, for example, if you have a private API or an API that is not in Integration yet, you can create custom Integration actions and triggers for those APIs. Once you have created these custom actions and triggers, you can use them like any other action on the Integration platform.
How the IBM webMethods CLI Connector Builder app Works
No subtopics in this section
Once you deploy the app on Integration, it is validated by the Integration platform. If the app contains any errors, you will see a relevant error message and error details on the console. Once the app is validated successfully, it will be made available to you locally. You can then share this app with specific users or publish it to Integration to make it available to all the users of Integration. Below is the list of basic terms you should be familiar with before you start creating your first Connector Builder app:
Trigger: It reads data from the specified API and can be used to execute a workflow execution.
Action: It sends data to the specified API to perform CRUD operations.
Authentication: It specifies what credentials are required from the user.
Lookup: It searches for specific records in your system or account.
IBM webMethods CLI Connector Builder vs Node.js Block
No subtopics in this section
Both the IBM webMethods CLI Connector Builder and the existing Node.js Block of Integration serve the same purpose; they let you create custom connectors. The major difference is that the IBM webMethods CLI Connector Builder works more like a programming project where you have to create your application from scratch whereas Node.js Block offers you a ready-to-use interface where you just have to enter the core logic for your application.
However, the Node.js block lets you create only actions, while the IBM webMethods CLI Connector Builder lets you create actions and triggers along with the custom authentications. You can choose any one of these options that fits your requirements and start creating your apps.
Requirements
No subtopics in this section
The app can be developed using any Node version between 16.15.0 and 18.12.1.
If you have installed any other Node version, for example, v18.12.1 on your system, you can choose from one of the following options:
Switch to one of the Node versions between 16.x.x and 18.x.x using tools such as node-windows, nvm, n, and run the app locally.
Build the app using your existing Node version, for example, v18.12.1, and then transpile it using Babel or a similar transpiler.
Installing IBM webMethods CLI Connector Builder Package
No subtopics in this section
In order to get started with the IBM webMethods CLI Connector Builder, you will first need to install it on your system. To do so, run the following command:
npm install -g @webmethodsio/wmiocli
Once this is done, you can start building your app.
Quick Setup Guide
No subtopics in this section
If you are familiar with how an iPaaS IBM webMethods CLI Connector Builder works, you can use the quick start guide below to start building your connectors. (For a detailed explanation of these steps, see Creating a Local App.
Install the Builder globally.
npm install -g @webmethodsio/wmiocli
Login to Integration.
wmio login
On running this command, you will be prompted to enter your tenant URL, email ID associated with the tenant, and the tenant developer key. You can get developer key by navigating to profile icon and then selecting the Profile option. Once you enter these details, you will be logged in to Integration.
At this point your IBM webMethods CLI Connector Builder is installed and ready to go.
Create a new app with minimum required files.
wmio init
You will be prompted to provide a name for the app.
Move into newly created directory.
cd <app_name>
Install all libraries needed for your IBM webMethods CLI Connector Builder app.
npm install
You should now have a local working app. You can now start adding codes for your actions/triggers/lookups and authentication.
Add action, trigger, and lookup. To add new action in your application, use:
wmio create action <action_name> or wmio action <action_name>
When you execute this command, a new action folder will be created in your app’s directory with a <action_name.js> file in it. You can then add your action code in that file’s execute function and update the input and output schema based on your requirements.
To add new lookup in your application, use:
wmio create lookup <lookup_name> or wmio lookup <lookup_name>
When you execute this command, a new lookup folder will be created in your app’s directory with a <lookup_name.js> file in it. You can then add your lookup code in that file.
To add new trigger in your application, use:
wmio create trigger <trigger_name> or wmio trigger <trigger_name>
When you execute this command, a new trigger folder will be created in your app’s directory with a <trigger_name.js> file in it. You can add your trigger code in that file.
Note: The action/trigger/lookup name should consist of only alphanumeric characters and underscores.
Create authentication for actions/triggers/lookup.
wmio auth
After this, you will be prompted to select the authentication type (basic/apikey/oauth/custom). When you select an authentication type, an authentication.js file will be created in your app’s directory. You can then add authentication logic to this authentication.js file.
Note: If you want to implement Noauth for your custom connectors, refer to the Authentications section.
Once all codes are added, test the app.
This is an optional step but we recommend that you perform it. The testing will be done against the mock data you have provided in your code.
wmio test
Deploy the app to Integration.
wmio deploy
Once you have deployed the app, refresh the browser window of Integration UI. The deployed app will be added in the Connectors panel under the Services tab and will be available for you to use locally. You can then download this app. If you want to make your app globally available, kindly contact Global Support.
Note: Refer to the Help section to get more details about the IBM webMethods CLI Connector Builder commands.
In the next section, we will understand how to create a IBM webMethods CLI Connector Builder app in detail.
Creating a Local App
No subtopics in this section
Once you have installed the IBM webMethods CLI Connector Builder package, you can install the IBM webMethods CLI Connector Builder and set up your authentication to create a working app. It will be private and visible in your Connectors panel under the Services tab. Before we go through the steps to create a local app, let’s understand the important blocks that make the app.
Triggers
No subtopics in this section
Triggers read data from the external app and execute the related workflow in Integration. Learn more about Triggers and how they work.
The basic structure for creating a trigger using the IBM webMethods CLI Connector Builder is given below. You can add your custom code in this structure to create your own triggers.
If you want to create a polling trigger, refer to the structure given below:
module.exports =
{
name: "sample_trigger",
label: "Sample Trigger",
input:
{
type: 'object',
title: 'Sample Trigger',
description: "Short description",
properties:
{
event:
{
type: 'string',
enum: ['sample_trigger']
},
polling: {
type: 'boolean',
default: true,
options:
{
hidden: true
}
},
}
},
output:
{
"sample_trigger":
{
type: 'object',
properties: {}
}
},
mock_data: {}, // add sample output data that will be used for testing
execute: function(input, options, output)
{
// will be called every 5 minutes
// your code here
},
activate: function(input, options, output)
{
// This function will be called whenever user activates the trigger/workflow.
// This function is useful in scenarios where you save cursor to figure out newly added/changed data in the
// 3rd party services. You can update your cursor so that trigger won't fetch data of the period
// during which the trigger was deactivated.
},
validate: function(input, options, output)
{
// This function will be called when the trigger is created.
// This functions validates all inputs provided by the user and sends an error if any of the details (including auth) are incorrect. In case of an error, trigger server won't create the trigger.
}
}
If you want to create a webhook trigger, refer to the structure given below:
module.exports =
{
name: "sample_trigger",
label: "Sample Trigger",
input:
{
type: 'object',
title: 'Sample Trigger',
description: "Short description",
properties:
{
event:
{
type: 'string',
enum: ['sample_trigger']
},
polling: {
type: 'boolean',
default: false,
options:
{
hidden: true
}
},
}
},
output:
{
"sample_trigger":
{
type: 'object',
properties: {}
}
},
mock_data: {}, // add sample output data that will be used for testing
execute: function(input, options, output)
{
// will be called every 5 minutes
// your code here
},
activate: function(input, options, output)
{
// This function will be called whenever user activates the trigger/workflow.
// This function is useful in scenarios where you save cursor to figure out newly added/changed data in the
// 3rd party services. You can update your cursor so that trigger won't fetch data of the period
// during which the trigger was deactivated.
},
validate: function(input, options, output)
{
// This function will be called when the trigger is created.
// This functions validates all inputs provided by the user and sends an error if any of the details (including auth) are incorrect. In case of an error, trigger server won't create the trigger.
}
}
Actions
No subtopics in this section
Actions define the tasks to be performed. The basic structure for creating an action is given below. You can add your custom code in this structure to build your own actions.
Most of the action/triggers need some sort of authentication from users to function. Integration provides some methods to help add authentication for your actions and triggers. These methods are listed below:
Basic: If your action/trigger only needs two pieces of information from the user, that is, Email ID and Password, you can use the basic authentication method. Below is the structure that should be used for basic authentication. You can add your custom code in this structure to create your own basic authentication mechanism. View the template for basic authentication.
module.exports =
{
label : 'Connect to Demo',
mock_input: {
"username" : "myuser",
"password" : "mypassword"
},
validate : function (input, output)
{
// auth data will be available in input.auth
// var username = input.auth.username
// var password = input.auth.password
// make call to third party api to validate user credentials
// and return callback output(null, true) in case of successful validation
// or return callback output(‘error message’) in case of unsuccessful validation
}
}
OAuth: OAuth is a token-based authentication method that allows the user’s account information to be used by any external service and subsequently provide secure access, without exposing the password. For example, many websites support multiple login methods. One of the login methods you commonly see is Login through Gmail or Login through Facebook. This is an example of OAuth. Given below is the basic structure for the OAuth authentication.
Integration provides built-in OAuth authentication modules for a number of services. You can either use these built-in modules or create custom OAuth authentication modules as per your requirements.
When selecting the built-in OAuth authentication module for a connector, the OAuth services specific to your tenant will be listed. If you have not registered your own OAuth service, you will be prompted to create custom OAuth modules to use your own credentials for authentication.
Built-in module:
module.exports = {
label : 'Connect to Twitter',
mock_input: { access_token: ‘token’ }, //can be obtained from https://flowoauth.built.io
oauth: 'twitter',
input: {},
validate : function (input, output){
// auth data will be available in input.auth
}
}
Custom OAuth module: You can also create custom OAuth modules to use own credentials for authentication. To do so, run the wmio auth command, select the OAuth authentication method, and then select OAuth 1 or OAuth 2 as per your requirements.
Here’s the example code for creating Custom OAuth:
{
"type": "oauth2",
"title": "{{title}}",
"clientId": "<client id="">",
"clientSecret": "<client secret="">",
"authURL": "<authorization url="">",
"tokenURL": "<access token="" url="">",
"preAuthProcessing": {
// any processing or hashing of client_id, client_secret before authorization call
// available processingFunctions uuid, basicAuth, base64, sha256 case-sensitive
},
"authQueryParams": {
// Optional query params required to be in authorization request supports interpolation
},
"preTokenProcessing": {
// any processing or hashing of client_id, client_secret before accessToken call
// available processorApi uuid, basicAuth, base64, sha256 caseSensitive
// eg:
// headers: {
// 'Authorization': 'Basic base64({client_id}{client_secret})'
// }
},
"tokenParams": {
"method": "",
"headers": {},
"data": {
"client_id": "{client_id}",
"client_secret": "{client_secret}",
"redirect_uri": "{redirect_uri}",
"grant_type": "authorization_code"
}
},
"preRefreshProcessing": {
// any processing or hashing of client_id, refresh_token before refreshToken call
},
"refreshParams": {
// add additional keys required for refresh token process
"client_id": "{client_id}",
"client_secret": "{client_secret}",
"redirect_uri": "{redirect_uri}",
"grant_type": "refresh_token"
},
"requiredParams": [
// Optional json schema for rendering form before authorizing
],
"refreshURL": "<refresh token="" url,="" default="" to="" tokenurl="">", //<optional>
"scope": {
//<optional>
"READABLE SCOPE TITLE": "SCOPE"
},
"validate": {
"url": "ANY API URL TO VALIDATE TOKEN OF THIRD PARTY SERVICE",
"headers": {
//<optional>
"Authorization": "Bearer {access_token}"
},
"query": { //<optional>
}
},
"redirectURL": "{{redirectURL}}"
}
Note: Values within the curly braces will be interpolated during runtime.
Once you have created the custom OAuth, you need to deploy it to Integration. To do so, run the following command:
`wmio oauth deploy`
API Key: If your action/trigger requires an API Key to authenticate the user, you can use the API Key authentication method. Users can pass the API Key as a query string parameter or through an HTTP header. Below is the basic structure for the API Key authentication. You can add your custom code in this structure to create your own API Key authentication mechanism. View the template for API Key authentication.
module.exports =
{
label: 'Connect to Demo',
mock_input:
{
"api_key" : "my api key"
},
input: {},
validate: function (input, output)
{
// this function will be executed when running unit test cases and authData will
// be available in input.auth
}
}
Custom: If your action/trigger requires extra information such as access token, client ID, and client secret from the user along with the account credentials, you can use the custom authentication method. Given below is the basic structure for custom authentication. You can add your custom code in this structure to create your own custom authentication mechanism. View the template for custom authentication.
module.exports =
{
label : 'Connect to Test',
mock_input: {
"username" : "myuser",
"apikey" : "my api key",
"pass" : "my password"
},
input:
{
type: "object",
properties:
{
//input field definition
}
},
validate : function (input, output)
{
// auth data will be available in input.auth
// var username = input.auth.username
// var password = input.auth.pass
// var apiKey = input.auth.apikey
}
}
Noauth: If your action/trigger doesn’t require any authentication, you can use the noauth authentication method. This is useful when you are creating or customizing actions such as Logger, JSON Parse (or other utility in-house actions provided by Integration) which do not contain an authentication field.
If you want to implement Noauth for custom connectors, follow the steps mentioned below:
Initiate the command wmio auth.
Select the basic auth option.
Add the key “auth_type”: “noauth” inside your index.json file.
Lookups
No subtopics in this section
Lookup helps you autofill fields with the data from your account. It retrieves a list of records associated with the specified property or account. It is important to define the lookup function in the action source code when creating the individual scaffoldings. The basic structure for creating lookup is given below. You can add your custom code in this structure to create your own lookups.
Note: ‘Any’ type field is not supported in the input schema for the lookup modules.
module.exports =
{
'name':'sample_lookup',
'label': 'label',
'search': 'false',
'execute': function (input, options, output)
{
// your code goes here
}
}
Example
No subtopics in this section
Let’s see how this works in practice. Suppose you want to create a new action for Evernote service. Follow the steps given below to achieve this:
Note: Ensure that you have installed Node.js version 4.x.x or higher on your machine and you are currently in the IBM webMethods CLI Connector Builder directory before attempting to create an app.
Install the IBM webMethods CLI Connector Builder globally.
npm install -g @webmethodsio/wmiocli
Configure deploy key and log in to Integration.
wmio login
You will be prompted to enter the tenant URL, email associated with your tenant, and tenant developer key. To retrieve the tenant developer key, login to Integration UI and navigate to Profile icon > Settings.
Once you have entered these details, you will be logged in to your Integration account. Your IBM webMethods CLI Connector Builder should be installed and ready to use. Next, we’ll create our first app - Evernote.
Create a directory for your app with the minimum required files.
wmio init
You will be prompted to provide a name and description for your app which will be displayed in the Services tab.
Once you have entered these details, it will automatically download the required files for your app and will create an app directory inside the IBM webMethods CLI Connector Builder folder.
Move into the newly created app directory.
cd evernote
Install all the libraries needed for your app.
npm install
You should now have a working local app. You can start adding codes for your actions and triggers.
Add new action.
wmio create action <action_name> or wmio action <action_name>
Example: wmio create action create_issue or wmio action create_issue.
You will notice that the action scaffolding has been created in your Evernote directory and it contains the newly created javascript file, evernote-notebook-create-.js. This file already contains the basic structure you need to follow to create a new action. You can now write your custom code for the action you want to create in this file. Similarly, you can add scaffoldings and relevant codes for lookups and triggers using the:
wmio create lookup or wmio lookup <lookup_name>
and
wmio create trigger <trigger_name> or wmio trigger <trigger_name>
Every action/trigger needs authentication. You can add authentication to your action/trigger using the following command:
wmio auth
You will be prompted to select the type of authentication method (Basic/OAuth/API Key/Custom) you want to use. Once you have selected an authentication method, an authentication.js file will be created in your app directory, in which you can add the authentication logic for your actions and/or triggers.
Once all the codes are added, you can test your app:
wmio test
The testing will be done against the mock data you provided in the code. This is an optional step but we recommend performing it to ensure that the code you have written is working as expected. At this stage, the directory structure of your app will look something like this:
Use this command to deploy your app to Integration.
Note: For security reasons, we have disabled a few modules for app deployment. So, if you come across any ‘access denied for module’ error while deploying your app, please move the ‘require’ statement inside the function where you want to use it, in the package.json file.
For example, if your current package.json file structure looks something like this:
var request = require('request');
...
...
execute: function (input, output) {
// business logic
}
You need to change it to the following structure:
...
...
execute: function (input, output) {
var request = require('request');
// business logic
}
You need to change it to the following structure:
...
...
execute: function (input, output) {
var request = require('request');
// business logic
}
Once deployed, it’ll be automatically registered with Integration and will be available to you locally in the Connectors panel under the Services tab.
If you want to make this app globally available to all users, kindly contact Global Support.
Note
Exporting workflows containing locally deployed custom connectors is not supported. So ensure to make the relevant custom connectors globally available first before creating the workflows to export them successfully.
In case the workflow you want to export contains locally deployed custom connectors, peform the following steps:
Make the relevant custom connectors globally available by contacting Global Support.
Replace the globally available custom connectors with local ones.
Reconfigure the custom connector mapping.
Save and export the workflow.
Adding Custom Icon
No subtopics in this section
You can add a custom icon for your application. To do so, navigate to your application directory, and place the required icon inside the icon folder.
Note: The custom icon should be a square, up to 128x128 pixels, and less than 1 MB.
Error Validations
No subtopics in this section
The following table lists the test validations for IBM webMethods CLI Connector Builder:
Error Response
Description
NO_CONNECTORS
No connectors are created yet.
INVALID_COMMAND_EXECUTION
Entered command input is invalid.
ILLEGAL_CHARS
Special characters are not allowed in connector/action/trigger/lookup name.
UNAUTHORIZED
You are not logged in. Use the wmio login command.
UNDEPLOYED_CONNECTOR
Connector is not yet deployed. Use the wmio deploy command.
INVALID_COMMAND
Entered command does not exist. Try using wmio help command to see the list of supported commands.
HISTORY_EMPTY
History is not available.
SWAGGER_IMPORT_FAILURE
Swagger version is not supported.
INVALID_CONNECTOR_NAME
Special characters are not allowed in the connector name.
USER_LOGGED_IN_ERROR
You are already logged in to Integration. Use wmio logout command to logout, and then relogin with a different account.
INVALID_EMAIL
Entered email address is invalid.
INVALID_PASSWORD
Entered password is Invalid.
LOGOUT_FAILURE
You are logged in to Integration.
INVALID_SET_PARAMS
Entered command is invalid. Try using wmio set lookup.
EMPTY_LOOKUP_LINK_FIELDS
No fields available to link lookup.
LOOKUP_NOT_FOUND
No lookup found in your current application.
VERSION_FAILURE
No connector is registered yet. Use wmio deploy command to deploy your connector.
INVALID_AUTH
Error validating authentication.
NO_AUTH_FILE
Authentication file is missing .
CONNECTOR_VERSION_NOT_FOUND
Current application does not have any version.
CONNECTOR_VERSION_ERROR
Connector version must be greater than the currently deployed version.
LOOKUP_EXIST_ERROR
Lookup module already exists.
INVALID_TRIGGER
Invalid trigger entry found in the index.
INVALID_OAUTH_PARAM
Invalid command parameter. Try using wmio oauth deploy.
OAUTH_MANDATORY_FIELD
Missing mandatory field in the oauth.json file.
OAUTH_EMPTY_FIELD
Oauth field must have at least one property.
OAUTH_FILE_ERROR
Unable to find oauth.json in your application directory.
OAUTH_PARSE_ERROR
Failed to parse oauth.json.
OAUTH_SCOPE_FAIL
Scope property should be an object.
LOOKUP_ATTACH_ERROR
Select at least one component to attach lookup.
LOOKUP_ENTRY_EXIST
Lookup entry already exists for the specified field.
LOOKUP_DEPENDENCY
Lookup needs dependencies of other input fields.
NO_FIELDS
No fields found.
DETACH_ERROR
No lookup found to detach.
DETACH_ACTION_FAIL
No actions to detach skipping.
DETACH_TRIGGER_FAIL
No triggers to detach skipping.
LOOKUP_ENTRY_NOT_EXIST
No entry exists for selected lookup.
NAME_TOO_SHORT
Name for {{type}} {{name}} is too short.
POSTMAN_FILE_ERROR
File {{file}} not found.
INVALID_EXPORT
Invalid Postman collection export file.
POSTMAN_PARSE_ERROR
Failed to parse JSON.
POSTMAN_SCHEMA_ERROR
No schema definition found in the exported json.
POSTMAN_SUCCESS
Imported {{total}} actions successfully.
POLLING_PROMPT
Is your trigger polling.
VERSION_PROMPT
Provide version for your {{type}} {{name}}.
VERSION_ERROR
Version should begin with prefix `v`, for example, v1 got {{version}}.
OAUTH_REQUIRED_INVALID
Required field should be a plain js object, for example, { title: ‘Domain’, id: ‘domain’, description: ‘abc’, default: ‘mydomain’}.
ENCRYPT_OAUTH
Encrypting …
INVALID_HOST
Invalid Tenant URL.
OAUTH_PREPROCESS_INVALID
Pre-processing hook {hook} params should be plain object.
Downloading your App
No subtopics in this section
Once you have deployed the app, you can download its ZIP file in your current directory. To do so, use this command:
wmio download
When you run this command, a drop down list will appear on the screen from which you can select the app you want to download.
App Versioning
No subtopics in this section
Each time you update your app, a new version is created. You can get a list of all the versions of your app using this command:
wmio versions
Deleting the Deployed Action or Trigger
No subtopics in this section
If you want to delete any deployed action or trigger, you can do so by following the steps below:
Download the app that contains the action or trigger you want to delete.
Unzip the downloaded file.
Delete the file associated with the action/trigger from the action/trigger folder and delete the name of the action/trigger from the index.json file.
Deploy the app using the wmio deploy command.
This will remove the specified action/trigger from your app.
Supported Modules
No subtopics in this section
You can use any npm module for developing connectors using the Node.js CLI framework. However, before using the npm module of your choice in CLI, check the module for potential security vulnerabilities and ensure the module is safe to use.
Note: We do not support C++ modules and modules that need to be compiled on binary. This is because, to make these modules work, they should be compiled based on target machine architecture.
Unpublishing the App
No subtopics in this section
When you deploy an app, all the actions and triggers associated with it are by default published.
In order to unpublish the published app, use the following command:
wmio unpublish
This will also unpublish any triggers and actions associated with the app.
You can deploy a connector within the same data center or across different data centers.
Each connector has an App ID and GUID. In order to import and export a workflow containing a custom CLI connector, IBM webMethods Integration uses a GUID.
App ID: App ID is the application ID of a connector and can be different for each environment or data center in which the connector is deployed. For example, if a Google Tasks connector is deployed on a development environment as well as staging environment, then the App ID for Google Tasks will be different for both environments.
GUID: GUID is the unique ID associated with a connector and always remains the same across all environments and data centers. It is important to keep the connector GUID same across all environments and data centers for successful import and export operation.
Deploying a connector across different data centers
Perform the following steps to deploy a connector across different data centers:
Step 1: Login to the CLI app with your source tenant credentials.
Step 2: Run the following command:
wmio migrate {domain} {email} {developer key}
where, domain - domain name of the destination tenant email - email ID associated with the destination tenant developer key - developer key associated with the destination tenant. To obtain the developer key, login to the relevant tenant and then navigate to Profile Icon > Profile option.`
Deploying a connector in the same data center across different tenants
Perform the following steps to deploy a connector in the same data center across different tenants:
Step 1: Login to the CLI app with the destination tenant credentials.
Step 2: Open the index.json file and remove the appid key from it.
Step 3: Run the following command:
wmio deploy
Note: Do not change or remove the connector GUID, otherwise your import and export operation will throw an error.
Creating Custom Connectors using Postman Collections
No subtopics in this section
Collections in the Postman tool, house a set of similar API requests as a group. These existing collections or set of APIs can be used to create custom connectors through the Connector Builder. To do so, follow the steps given below:
Go to the Postman tool and navigate to the Collections section. You will see the list of existing collections.
Locate the collection for which you want to create custom actions. Click on the ellipsis icon (three tiny dots) given beside its name and click Export.
You will be prompted to specify the collection version.
Specify the location where you want to save the exported collection.
Note: It is recommended that you save the collection inside the app directory for ease of use.
Open the command prompt, navigate to your app directory, and enter the following command:
wmio postman <collection_file_name.json>
This will create an action file for each API call included in the specified collection. You can then redeploy your app to start using these apps like any other connector in the Connectors panel.
Getting User Info
No subtopics in this section
To get information about the currently logged in user, use the following command:
wmio whoami
Help
No subtopics in this section
To get the list of all the Integration-CLI commands along with their details, run the following in the command prompt:
wmio help or wmio
Given below is the list of all IBM webMethods CLI Connector Builder commands:
wmio login: Configures the deploy key and logs you into Integration.
wmio logout: Logs you out from Integration by deleting your access token from the home directory.
wmio connectors: Displays the list of all apps for the current user.
wmio init: Initializes a new Integration app in your directory.
Example: wmio init sample_app
wmio create action <action_name> or wmio action <action_name>: Creates a scaffolding for an action in app directory.
Example: wmio create action create_issue or wmio action create_issue
wmio create trigger <trigger_name> or wmio trigger <trigger_name>: Creates a scaffolding for a trigger in app directory.
Example: wmio create trigger new_mail or wmio trigger new_mail
wmio create lookup <lookup_name> or wmio lookup <lookup_name>: Creates a scaffolding for a lookup in app directory.
Example: wmio create lookup issue_id or wmio lookup issue_id
wmio auth: Creates an authentication scaffolding in the app directory.
wmio attach lookup: Attaches lookup to action or trigger field interactively.
wmio detach lookup: Detaches lookup from action or trigger field interactively.
wmio deploy: Builds app and deploys it to Integration.
IBM webMethods CLI Connector Builder will update your existing version app unless you specifically change or increase version before re-deploying it.
wmio download: Downloads the ZIP file for your app to your current directory.
wmio versions: Displays the list of all versions for the current app.
wmio history: Displays the complete history of the current app.
wmio swagger <swagger_file>: Converts a Swagger to an action. In the field, you can pass either the path for the swagger file or the URL associated with the swagger file. Open API support (up to version 3.0.1) and OAuth attachmentment support is also enabled for swagger.
wmio unpublish: Unpublishes the app (and its associated actions and triggers).
wmio whoami: Displays info of the currently logged-in user.
wmio help or wmio: Displays the list of all IBM webMethods CLI Connector Builder commands along with their details.
wmio postman <collection_file_name>: Creates an action file under the action folder of your app directory for each API call.