Deploying smartobjects by command line

  • 16 December 2013
  • 5 replies
  • 1 view

Badge +1

Hi,


Can anyone tell me how best to export/import my smartobjects (.publish file) by command line?


I'm assuming K2 Blackpearl has a command line facility?


thanks


David


5 replies

Badge +8

Easiest would be MSBuild if you want command line:


http://help.k2.com/en/kb000188.aspx


 


Alternatively you can use PowerShell. See the following URL and have a look at the "Deploying K2 Packages Using PowerShell" section:


http://help.k2.com/files/6786 


 


.publish files are created by the SmartObject Service tester and I don't think it has command line operations available for import, it will most likely be need to be done via the UI.

Badge +1

hi,


 


thanks for that.


But I'm looking for a way to deploy smartobjects with just a bat file, ie not using Package and Deploy.


Can MSBUILD do this?


Basically I'm trying to create a "push-button" build for my K2 objects and workflows.


 

Badge +8

Yes.

Badge +1

do you have an example of this?


I know I can do it with workflows


eg MSBUILD "k2_workflowsmy_workflowobjDebugDeploymentmy_workflow.msbuild" /p:TestOnly=F;Environment=Development


but would it be similar with smartobjects?


thanks

Badge +8

A deploy package can contain both Workflows and SmartObjects. So the command you posted will work regardless of the contents of the package. Just ensure that the SmartObjects you intend to deploy is set to be Included. 

Reply