Import Application Version CLI

Import an application version archive with the JFrog CLI, then place that archive on another JFrog instance when the instances have no network connection.

Description: You can import application version archives on target instances or Edge nodes within an air-gapped environment. You can import an application version archive from a .zip file you exported.

You can use this when you have multiple JFrog instances with no network connection between them.

Command:

jfrog apptrust version-import [command options] <application-key> <path to archive>

Alias command: jf at vimp

Options

The command uses the following options.

OptionRequired or OptionalTypeDescription
<application-key>requiredstringThe key of the application to import the version into.
<path to archive>requiredstringPath to the application version archive .zip file on the filesystem.
--mapping-pattern "<pattern>"optionalstringSpecify along with --mapping-target to distribute artifacts to a different path on the edge node. You can use wildcards to specify multiple artifacts.
--mapping-target "<target>"optionalstringThe target path for distributed artifacts on the edge node. If you do not specify a target, the artifacts keep the same path and name on the edge node as on the source Artifactory server. You can use placeholders such as {1} and {2} to map corresponding tokens enclosed in parentheses from the pattern path.
--unpromotedoptionalbooleanImport the version without placing its artifacts in any repository. Default: false.

Example 1: Import Application Version Archive

Import an application version from an archive file located in the current working directory:

jf apptrust version-import ./myExportedApp.zip

Example 2: Import into a Specific Project and Server

Import an archive while specifying a target project and configured server ID:

jf apptrust version-import --project=myproject --server-id=my-server ./myExportedApp.zip


Related Topics


Did this page help you?