Skip to main content

Version: 22.10

Clone Organization Library

The Maestro Offline Build (MOB) tool provides the ability to clone Organization Libraries separately to any project that may be using them. This can be appropriate to store Organization libraries in a different location to a project, to allow control over source code management, or to reduce the time to clone the project (thereby improving the performance of any automated build processes).

info

Just like Project Clone, this command requires the credentials of a user who has the Scm Org Library View permission.

Synopsis

maestro org-library-clone [ options ]

Options

All options are optional unless otherwise indicated.

info

Both short and long options are shown in the table below. When specifying a command, use either a short option or long option but not both.

OptionDescription
-s
--server
Server
(Required) The URL of the maestro server.
-u
--user
Username
(Required) The username of a Maestro user that has the permission to create organizations.
-p
--password
Password
(Required) The password for the user specified in the Username option.
-r
--remote-path
Remote Path
(Required) The path to the Organization Library on the Maestro server, specified as a normalised name in the format:
organization-name/library-name
-n
--library-version
Library Version
(Required) The version number of the library being requested.
-l
--local-path
Local Path
The path on the local file system to place the library.
If not provided, files are exported to the current working folder.
-f
--force-overwrite
(Flag) Force Overwrite
Indicate that any existing contents in the output folder may be overwritten.
If not provided and the folder is not empty, an error is displayed.

Examples

  • Clone version 1.0.0 of an Organization Library to the current folder.

    maestro org-library-clone –s https://maestro.avoka.com.au –u username –p p@ssw0rd –r offline-build-demo/demo-organization-library -n 1.0.0
  • Clone version 1.0.5 of an Organization Library to a specified folder.

    maestro org-library-clone –s https://maestro.avoka.com.au –u username –p p@ssw0rd –r offline-build-demo/demo-organization-library -l C:\libraries\orgs\demo -n 1.0.5