Install assets using the featureManager command

We can use the featureManager command to install Liberty Repository features in our Liberty environment and view required feature information. The featureManager find, install, and uninstall actions are stabilized. For these actions, use the installUtility command instead.

Before we can access the Liberty Repository using the featureManager command, we must install Liberty.

After we install Liberty, we can install Liberty Repository features using the featureManager command. The featureManager command automatically installs asset dependencies.Tip: Use the installUtility command instead of the featureManager command. With the installUtility command, we can manage more asset types and install, find, or download assets from multiple repositories.

See Install assets using the installUtility command.

  1. Review the assets that are located in the Liberty Repository and obtain the feature_shortName for each asset we want to install. The asset feature_shortName is required to download and install assets. We can use the featureManager command to search for and review assets.

    1. To review assets and obtain the asset feature_shortName using the featureManager command, use the featureManager find command.

      • To find assets that are applicable to the configuration, specify a string to search for:

          featureManager find searchString

      • To view detailed information, use the --viewInfo option; for example:

          featureManager find searchstring --viewInfo

    For a list of all Liberty features, see Liberty features.

  2. Install assets...

      featureManager install feature_shortName --when-file-exists=ignore

    Install multiple features...

      featureManager install feature_shortName1 feature_shortName2 --when-file-exists=ignore

    Download a feature to a local directory without installing the feature...

      bin/featureManager install feature_shortName1 feature_shortName2 --downloadOnly=[all|required*|none]

    You can configure this option to download all the dependent features, the dependent features required for this runtime, or none of the dependent features. The default is to download the required dependent features. To specify a local destination directory, use this option with the --location=directoryPath option.

    Install features from a local source directory...

      bin/featureManager install feature_shortName1 feature_shortName2 --location=directoryPath

    If we do not want to connect to the Liberty Repository, use the --offlineOnly option to install features from a local directory; for example:

      bin/featureManager install feature_shortName1 feature_shortName2 --offlineOnly --location=directoryPath

  3. Use the featureManager command to see what assets we have installed or to get help.


See also


Parent topic: Install Liberty Repository assets


Related information

    repository (V8.5.5.4)