Skip to main content

CLI command: c4-cli librepo

c4-cli librepo

Manages library repositories and the libraries they contain

Usage:

 c4-cli librepo [OPTIONS] <COMMAND>
Example 44. Examples:
c4-cli librepo install LibRepoName [--dry-run] [--overwrite|--skip-existing] C:/path/to/library.compiled-library [C:/path/to/library.compiled-library-v3] [...]
c4-cli librepo install LibRepoName [--dry-run] [--overwrite|--skip-existing] [--all] C:/path/to/library-folder [C:/path/to/library-or-folder] [...]
c4-cli librepo install C:/path/to/librepo/ C:/path/to/library.compiled-library C:/path/to/library.compiled-library-v3
c4-cli librepo install LibRepoName --all C:/path/to/library-folder C:/path/to/library-or-folder [...]
c4-cli librepo install LibRepoName --overwrite C:/path/to/library.compiled-library


Options

Description

-h, --help

Displays help for the command

Command

Description

install <library-repository> <library-paths>

Installs the specified libraries into the specified library repository

CLI command: c4-cli librepo install

Installs the specified libraries into the specified library repository

Usage:

c4-cli librepo install <library-repository> <library-paths> [OPTIONS]
Example 45. Examples
    c4-cli librepo install C:/path/to/librepo/ C:/path/to/library.compiled-library C:/path/to/library.compiled-library-v3
    c4-cli librepo install LibRepoName --all C:/path/to/library-folder C:/path/to/library-or-folder
    c4-cli librepo install LibRepoName --overwrite C:/path/to/library.compiled-library
    c4-cli librepo install LibRepoName --skip-existing C:/path/to/library.compiled-library
    c4-cli librepo install LibRepoName --dry-run C:/path/to/library.compiled-library


Arguments

Description

<library-repository>

Specifies the library repository where the libraries should be installed

Valid targets are either a repository name – as defined in the library repository preferences – or a relative or absolute path to the root folder of the repository. 

Use . for the current directory.

<library-paths>

Paths to libraries to install or to folder paths containing libraries

Options

Description

-h, --help

Displays help for the command

-v, --verbose

Enables logging to the console at the information level

Short form for --log-level=information

--log-level

Sets the log level for logging to the console, for example trace, debug, information, warning, or error. By default, nothing is logged to the console (none).

-d, --dry-run

Optional

When the flag is set, the command will report in the usual way which changes would have been made during the execution. However, the file system will not be modified.

--overwrite

Optional

Overwrites existing libraries with the same library ID in the library repository. Mutually exclusive with --skip-existing

--skip-existing

Optional

Skips the installation of libraries that already exist in the library repository. Mutually exclusive with --overwrite

-a, --all

Optional

Optional. Recursively scans the specified folder paths and installs all libraries found in the folder structure