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