Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Importing OpenAPI Specification by Using the Command-Line Utility

You can import a project as an OpenAPI specification by using the `studio-tools` command-line utility.

Procedure
1. Navigate to ``BE_HOME```/studio/bin/`.
2. Open the `studio-tools` utility.
3. On the command prompt, run the following command:

       studio-tools.exe -core importOpenAPI [-h] [-x] [-u] [-pass] [-i inputSpecificationFile] [-p projectDir]

   For example:

       studio-tools.exe -core importOpenAPI -i https://raw.githubusercontent.com/user_name/630Test1/main/http_open_st_v34.json?token=GHSAT0AAAAAAB6DBAVHH2K4JQZKBJ5YNOIKY7LDE7Q -p C:\Users\xyz_user\workspace\630_V37\OpenGithubImport -u -xyz_user -pass -1234

## Options

The following table describes the command parameters:

importOpenAPI SpecificationOptions
Option | Description
--- | ---
`-core importOpenAPI` | Specifies the `importOpenAPI` operation for importing a TIBCO BusinessEvents Studio OpenAPI specification into the workspace.
`-h` | Optional. Displays help.
`-x` | Optional. Overwrites the artifacts if they exist in the target project when the value of `-x` is set to True. If the value of `-x` is set to False, then the export operation does not proceed and a different output file should be mentioned. If the value of `-x` is not specified, then a confirmation message prompts whether to overwrite the file.
`-u` | Optional. Specifies the username when the OpenAPI specification is imported from a private repository URL.
`-pass` | Optional. Specifies the password when the OpenAPI specification is imported from a private repository URL.
`-i` | Specifies the input file name for the OpenAPI specification. The input file name can also be a remote URL.
`-p` | Target project: Specifies the absolute path to the project directory of the TIBCO BusinessEvents Studio project where the specification is to be imported.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.