Update:
It is now necessary to include either the "--libraryNodes" or "-l" option to export (stand alone) library node(s) that may be in the source path.
So the previous example of exporting a library node is now:
analyzeCli --host analyze1.example.com --port 443 --protocol https export -l -f "C:/temp/ReferenceData.lna" "//Adrian/Forum/ExportLibraryNodeTest/ReferenceData"
------------------------------
Adrian Williams
Precisely Software Inc.
------------------------------
Original Message:
Sent: 09-16-2021 03:41
From: Adrian Williams
Subject: Using analyzeCli to migrate custom libraries
Yes you should be able to export a custom library node from one Analyze system using the AnalyzeCli and then import it into a different system.
For example, if you had a library node called "ReferenceData" in the source system:
This would be exported using AnalyzeCli using the following command:
analyzeCli --host analyze1.example.com --port 443 --protocol https export -f "C:/temp/ReferenceData.lna" "//Adrian/Forum/ExportLibraryNodeTest/ReferenceData"
Note the path to the source library node uses the underlying path name (in this case "//Adrian") rather than the "My Document" folder name displayed in the UI - i.e. similar to the resource path information displayed in the properties panel. The exported library node is explicitly named with the .lna file extension.
This could then be imported into the target Analyze system using the following command:
analyzeCli --host analyze2.example.com --port 443 --protocol https import -d "//Adrian/ImportLibraryNodeTest" "C:/temp/ReferenceData.lna"
Which results in the following: