3 Commands
api
Use this set of commands to create, delete, and manage custom APIs and their implementation code.
api:create
omce api:create <api-name>/<api-version> --backend <backend-name>/<backend-version>
Options
|
(Required) Associate the API with the named backend. If such a backend doesn’t exist, create it. |
|
Associate the API with the given environment. (You must be logged in to that environment.) |
|
Path to the RAML file on which to base the API. |
|
Generate the API’s scaffolding based on the named template. Right now, the following template is available:
|
Examples
Create an API called FixItFastCustomer (version 1.0). |
|
Create an API called FixItFastCustomer (version 1.0) and associate it with the backend FixItFast . |
|
Create an API called FixItFastCustomer (version 1.0), associate it with the backend FixItFast , and generate scaffolding based on the bot template. |
|
api:curl
Print a cURL command scaffold for calling an API. The scaffold is generated with an authorization token for the backend you are working with.
omce api:curl <api-name>/<api-version> --backend <backend-name>/<backend-version>
Options
|
(Required) Target backend. |
|
Target environment. (You must be logged in to that environment.) |
|
Authorization type for the API. Valid values:
Defaults to |
api:delete
Delete an API.
omce api:delete <api-name>/<api-version>
Options
|
Specify the environment where the API is hosted. (You must be logged in to that environment.) |
api:deploy
Create a zip file of a custom code implementation and upload it to an environment. Unless you specify the --dir
option, you call this command from the source directory of the implementation.
omce api:deploy <api-name>/<api-version>
Options
|
Source directory of the implementation. If none specified, the current directory is used. |
|
Target environment for the API. (You must be logged in to that environment.) |
api:fetch
Download the default implementation for the API.
omce api:fetch <api-name>/<api-version>
Options
|
Target directory for unpacking the implementation. By default, it’s the current directory. |
|
Associate the API with the given environment. (You must be logged in to that environment.) |
api:list
omce api:list
Options
|
The environment containing the API you want shown. (You must be logged in to that environment.) |
api:scaffold
Create a scaffold for the API’s implementation. The scaffold takes the form of a Node.js module.
omce api:scaffold <api-name>/<api-version>
Options
|
Source directory of the API. If none specified, the current directory is used. |
|
Target environment for the API. (You must be logged in to that environment.) |
|
Generate the API’s scaffolding based on the named template. Right now, the following template is available:
|
api:security
Name the roles that can access the API (or enable anonymous user access).
omce api:security <api-name>/<api-version>
Options
|
Enable anonymous user access. |
|
Target environment for the API. (You must be logged in to that environment.) |
|
List of roles, separated by commas. |
api:serve
Run the API’s custom code in a local container.
omce api:serve <api-name>/<api-version> --backend <backend-name>/<backend-version>
Options
|
Automatically create debugger gateway API. |
|
(Required) Target backend. |
|
Source path for the custom code container |
|
Enable node debugger |
|
Associate the API with the given environment. (You must be logged in to that environment.) |
|
Node version compatibility:
The default value is stored in Valid values:
|
|
Location of node installation on your system. |
|
Local port to listen on. The default is |
|
Source code path. |
backend
Use this set of commands to create, delete, and manage backends.
backend:add
Associate an artifact with a backend.
omce backend:add <backend_name>/<backend_version>
Options
|
API to add to the backend. |
|
Associate the backend with the given environment. (You must be logged in to that environment.) |
Examples
Add the |
|
backend:create
Create a backend.
omce backend:create <backend_name>/<backend_version>
Options
|
Associate the backend with the given environment. (You must be logged in to that environment.) |
backend:delete
Delete a backend.
omce backend:delete <backend_name>/<backend_version>
Options
|
Target environment containing the backend you are deleting. (You must be logged in to that environment.) |
backend:list
List available backends.
omce backend:list
Options
|
Environment containing the backends that you want listed. (You must be logged in to that environment.) |
backend:remove
Remove an API from a backend.
omce backend:remove <backend_name>/<backend_version> --api <api_name>/<api_version>
Options
|
(Required) API to remove from the backend. |
|
Environment containing the backend that you are removing an artifact from. (You must be logged in to that environment.) |
Examples
Remove the |
|
bot
Use this set of commands to manage your bots.
bot:service:create
Add a custom component service to a bot so that the bot can access to the custom components of a given API.
omce bot:service:create <bot_name> --service <custom_component_service_name> --backend <backend_name>/<backend_version> FixItFast/1.0 --api <api_name>/<api_version> --auth <auth_type>
Options
|
(Required) API containing the custom components that the bot needs. |
|
(Required) Backend that the bot is associated with. |
|
Target environment for the bot. (You must be logged in to that environment.) |
|
Use a backend and/or API that is deployed to a different environment. |
|
(Required) Custom code service name. |
|
(Required) Authorization type for the API. Valid values:
|
Examples
Add the |
|
env
Use this set of commands to manage environments that you are accessing through the CLI.
env:add
Add an environment.
omce env:add <environment_alias_of_your_choosing> --base-url <base_URL> --token-endpoint <token_endpoint> --client <client_id> --secret <client_secret>
|
(Required) Base URL for the environment. |
|
(Required) Your team member client ID. |
|
(Required) Your team member client secret. |
|
(Required) OAuth token endpoint for your environment. |