Skip to content

Export

Arguments

Following commands can be used during an export:

Option Description Required
--ServerUrl The URL to the Server. Yes
--Username Username. Yes
--Token Personal Access Token. Yes
--License Path to a folder or file with a license.
--Project The Polarion project name.
--Model The source Model used to import from Server. Yes
--PackageGuid The GUID of the Package configured for import. Yes
--Mapping The mapping file used for import. Yes
--LocationDocument Create Document – location and document ID for export.
--StartActionId Create Document – start workflow action ID.
--StopActionId Create Document – stop workflow action ID.
--DiagramPath Sets the path for diagram images.
--DiagramFileExtension Diagram image file extension (png, jpg, bmp). (Default: png)
--MaxDiagramWidth Maximum width for exported diagrams (default: 750 px).
--DiagramAbovePackage Sort diagrams above packages.
--FreeSort Enable EA free sorting option.
--PageSize Page size for loading Polarion items (Default: 100).
--MaxConcurrentTasks Number of concurrent tasks to process and load data. (Default: 8)
--TimeOut Timeout in minutes between operations.
--RateLimitPerSecond Limit API calls per second (0 = no limit).
--RateLimitPerMinute Limit API calls per minute (0 = no limit).
--Log Sets the output path for log files.
--ExtendedLog Enables extended logging.
--help Display this help screen.

Example

Export

LemonTree.Connect.Polarion.Automation.exe export `
  --ServerUrl "https://polarion.example.com/polarion" `
  --Username "john.doe" `
  --Token "your-personal-access-token" `
  --Project "MyProject" `
  --Model "C:\Models\MyModel.qeax" `
  --PackageGuid "{B62E2AC1-DFE5-44B2-95A8-052F7499585E}" `
  --Mapping "C:\Mappings\PolarionExportMapping.xml" `
  --LocationDocument "MySpace/MyDocument" `
  --StartActionId "draft" `
  --StopActionId "approved" `
  --DiagramPath "C:\EA\DiagramImages" `
  --DiagramFileExtension "png" `
  --MaxDiagramWidth 750 `
  --DiagramAbovePackage `
  --FreeSort `
  --PageSize 5000 `
  --MaxConcurrentTasks 8 `
  --TimeOut 3 `
  --RateLimitPerSecond 10 `
  --RateLimitPerMinute 300 `
  --Log "C:\Logs\PolarionExport" `
  --ExtendedLog