APM (ao package manager)
Download Packages (Local)

Download packages locally

For development purposes, you can download packages locally and use them manually in your project.

Make sure you have installed the apm cli tool

apm download <package-name>
# example usage
❯ apm download 0rbit
βœ” Package 0rbit downloaded
All packages downloaded
 
❯ apm download @sam/Llama-Herder
βœ” Package @sam/Llama-Herder downloaded
All packages downloaded
 
❯ apm download sunglasses
βœ” Package sunglasses downloaded
All packages downloaded
 
❯ tree apm_modules
apm_modules
β”œβ”€β”€ @apm
β”‚Β Β  β”œβ”€β”€ 0rbit
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ README.md
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ apm.json
β”‚Β Β  β”‚Β Β  └── source.lua
β”‚Β Β  └── sunglasses
β”‚Β Β      β”œβ”€β”€ README.md
β”‚Β Β      β”œβ”€β”€ apm.json
β”‚Β Β      └── source.lua
└── @sam
    └── Llama-Herder
        β”œβ”€β”€ README.md
        β”œβ”€β”€ apm.json
        └── source.lua
 
6 directories, 9 files

This will create an apm_modules directory with directories for each package downloaded.

You can then use the downloaded package in your project by importing it in lua or using the .load function in aos cli