Data source Deployment using Studio command line

Data source Deployment using Studio command line

book

Article ID: KB0079466

calendar_today

Updated On:

Products Versions
TIBCO MDM ALL

Description

When deploying data source from studio command line using below command, we don't have any option to provide external path of data file to upload.

TIBCOBusinessStudio.exe -application com.tibco.xpd.deploy.server.cim.DeployModel -data "c:\Users\mdm\workspace" -u jsmith -pwd jsmith -mode ds -baseURL http://localhost:8080 -i "c:\Users\myname\workspace\MyProject\Datasources\Contact.ds" -e techpubs -d techpubs

-nodatafile command is there which will not upload file but just deploy data source.If we don't provide this parameter , it takes file path which we provided in studio project.

Issue/Introduction

Data Source Deployment Using command line referring external data file

Environment

ALL

Resolution

To Support datafile path argument in command line for datafile deployment which is placed at any location the argument is "-datafilepath".
So after adding this the whole command to deploy datasource along with external data file path is,

TIBCOBusinessStudio.exe -application com.tibco.xpd.deploy.server.cim.DeployModel -data "c:\Users\mdm\workspace" -u jsmith -pwd jsmith -mode ds -baseURL http://localhost:8080 -i "c:\Users\myname\workspace\MyProject\Datasources\Contact.ds" -e techpubs -d techpubs -datafilepath "path of datafile"

Additional Information

CLI deployment,https://docs.tibco.com/pub/bstudio-mdm/5.1.0/doc/html/GUID-01755A71-4859-4408-BADF-6089DB78968F.html