Armory is a personal package manager. It has two main components: a registry that hosts packages and a CLI that can be used to publish and install packages.
> armory install path
info: installed package to /home/msmoiz/.armory/registry/path-1.0.0
info: installed binary to /home/msmoiz/.armory/bin/path
To install the CLI, run the following command:
curl https://armory.msmoiz.com/install.sh | sh # on Unix-like systems
Invoke-RestMethod https://armory.msmoiz.com/install.ps1 | Invoke-Expression # on Windows
This will install the appropriate binary for the target platform. Armory data
and configuration lives in the ${HOME}/.armory
directory. To complete
installation:
- Add the Armory binary directory (${HOME}/.armory/bin) to your PATH.
- Log in to the Armory registry using
armory login
. Registry credentials can be found on the server that hosts the registry.
Armory is supported on Windows, MacOS, and Linux. It supports both x86_64 and aarch64 architectures for these operating systems.
The registry is hosted at https://armory.msmoiz.com.
A package represents a single binary or executable. It does not include manual pages, autocompletions, libraries, config files, or other peripheral artifacts related to the application.
To publish a package, use the armory publish
command. This command reads an
armory.toml file in the current directory to determine the name and other
metadata needed to describe the package. It should contain the following fields.
General package information.
The name of the package.
The version of the package.
Information about a specific target. There should be one targets
section for
each platform that your tool supports.
The target triple that this target corresponds to.
[package]
name = "armory"
version = "0.2.2"
[[targets]]
triple = "x86_64_linux"
path = "target/x86_64-unknown-linux-musl/release/armory"