Init
Doohickey CLI provides a simple way to initalize an integration project. doohickey init will ask for all the necessary service URLs for Open Integration Hub and save them for future use. init will also create and initialize an integration project, including:
- A
transformation.yamlto use with in conjunction with the Doohickey VSCode Extension - A
package.jsoncontaining the Doohickey Types NPM package- Doohickey Types provides helpful auto-complete and type-ahead for writing templates
- A
.gitignorecontaining the recommended files for excluding from source control - A
.doohickey.jsonthat will ultimately contain important environment information for Doohickey CLI - A
.config/doohickeyfolder containing session configuration information for Doohickey CLI - A
templates/samplefolder containing the following:- A
JSfolder containing an example JavaScript file that can be used within a template - A
JSONandJSONatafolder containing a sample JSON and JSONata expression that go hand in hand with thetransformation.yaml - An example template named
sample.jsto help jumpstart writing your first template
- A
Arguments
doohickey init takes one argument - an alias for your Open Integration Hub environment workspace. This alias will be used in future commands to reference this environment workspace.
Flags
There are optional flags available with this command. The user will be prompted for the value for any flags not provided:
--auditLogUrlor-astring: Base URL for OIH audit log service
--componentUrlor-cstring: Base URL for OIH component repository
--flowUrlor-fstring: Base URL for OIH flow repository
--iamUrlor-istring: Base URL for OIH IAM service
--secretServiceUrlor-sstring: Base URL for OIH secret service
--webhookServiceUrlor-wstring: Base URL for OIH webhook service
Usage
In your terminal, ensure your current working directory is the directory in which your integration project will live.
- To check your current directory, run
pwd
From your intended directory, simply run the doohickey init myWorkspaceAlias command - replacing myWorkspaceAlias with the alias you would like to use. If you did not provide values for all service URLs with flags, you will be prompted to enter the service URL one at a time. After all service URLs are received, they will be saved for future use and the above described files will be automatically generated.
