Skip to content
/ cli Public

The AssemblyScript Package List CLI. 📦

Notifications You must be signed in to change notification settings

aspkg/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The AssemblyScript Package List CLI. 📦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published