add Verified current stable Not installed? Package Management

Add / Add Archive Resource

Add Archive Resource

Integrates an archive file into the resource management system with an alias option.

$
Terminal
add archive <archive.tar.gz> as <alias>;

When To Use

When deploying archived content to streamline initialization of multiple resources.

Pro Tip

Review archive structure; ensure no conflicting filenames exist within before adding to prevent overwrites during unpackaging.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
add archive <archive.tar.gz> as <alias>;

Anatomy of Output

Understanding the result

Archive /path/to/archive.tar.gz added successfully with alias 'myArchive'. Success Notification

Confirms successful addition and registration of the archive.

Total Archives: 20 Count Summary

Displays the total number of archives managed in the repository.

Alias 'myArchive' now maps to /path/to/archive.tar.gz Alias Confirmation

Indicates successful incorporation of the alias for the archive.

Troubleshooting

Common pitfalls

ArchiveNotFoundError: The specified archive could not be located.

Solution: Check the archive path and ensure it is accessible.

DuplicateAliasError: The alias 'myArchive' has already been used.

Solution: Select a different alias name or update the existing entry.

CorruptedArchiveError: The archive file could not be read due to corruption.

Solution: Validate the integrity of the archive file before uploading.

Command Breakdown

What each part is doing

add
Base Command
The executable that performs this operation. Here it runs Add before the shell applies any redirect operators.
<archive.tar.gz>
archive.tar.gz
The value supplied for archive.tar.gz.
<alias>
alias
The value supplied for alias.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.