Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.08 KB

README.md

File metadata and controls

73 lines (47 loc) · 1.08 KB

aspkg-cli

The AssemblyScript Packages CLI 📦

Installation

CLI

npm install aspkg -g

JS API

npm install aspkg

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);

Credits

Initially created by rom with oversight from JairusSW