The AssemblyScript Packages CLI 📦
CLI
npm install aspkg -gJS API
npm install aspkgTo list all CLI commands, use aspkg help.
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`);
});Log out of the registry
const aspkg = require("aspkg");
await aspkg.logout();Returns the authenticated user's GitHub username
const aspkg = require("aspkg");
const user = await aspkg.whoami();Publish the package in the desired directory
const aspkg = require("aspkg");
const dir = process.env();
await aspkg.publish(dir);