Skip to content

betteridea-dev/ao-package-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AO Package Manager (APM)

The APM is a package manager for the AO the computer. It is designed to make it possible to easily install packages in processes.

Visit apm.betteridea.dev for a graphical interface to view and publish packages.

APM ID DKF8oXtPvh3q8s0fJFIeHFyHNM6oKrwMCUrPxEMroak

Client Usage (For users wanting to install packages)

Load client tool

Client tool: client-tool.lua

Load client.lua file, this will load necessary handlers and functions to interact with the APM process.

.load client.lua
-- or you can also load the blueprint
.load-blueprint apm.lua

The APM process id is stored in the apm.ID variable.

Show installed pacakges

apm.installed

Install a package

apm.install "package_name"
-- or
apm.install "@vendor/package_name"
-- or
apm.install "@vendor/package_name@version"

When you dont enter a vendor name, it will default to @apm

When you dont enter a version, it will default to the latest version.

Uninstall a package

APM.uninstall "package_name"
-- or
APM.uninstall "@vendor/package_name"

When you dont enter a vendor name, it will default to @apm

Publishing a package

Check the guide at apm webapp

also useful: apm cli tool