The AssemblyScript Packages CLI 📦
Installation
CLI
JS API
Commands & Programmatic Usage
To list all CLI commands, use aspkg help.
login
Log in through GitHub to the registry
const aspkg = require("aspkg"); aspkg .login((code, url) => { console.log(`Verification Link: ${url}`); console.log(`Verification Code: ${code}`); }) .then(() => { console.log(`Logged in`); });
logout
Log out of the registry
const aspkg = require("aspkg"); await aspkg.logout();
whoami
Returns the authenticated user's GitHub username
const aspkg = require("aspkg"); const user = await aspkg.whoami();
publish
Publish the package in the desired directory
const aspkg = require("aspkg"); const dir = process.env(); await aspkg.publish(dir);