npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@microtronics/studio-cli

v0.50.0

Published

Microtronics Studio CLI Tool

Readme

@microtronics/studio-cli

The Microtronics Studio CLI Tool

This tool assists in installing, packaging and publishing Microtronics Studio libraries and apps.

Installation

Make sure you have Node.js installed. Then run:

$ npm i -g @microtronics/studio-cli

Usage

$ studio-cli --version

For a reference on all the available studio-cli commands, run studio-cli --help

Requirements

Node.js version 22 or higher.

Commands

install (alias: i)

Install all dependencies in your project.

$ studio-cli install [dependency...]

Options:

  • -e, --env <environment> - CLI target environment (defaults to STUDIO_ENV environment variable)
  • --token <API-token> - API Access Token (defaults to STUDIO_TOKEN environment variable)

Examples:

$ studio-cli install
$ studio-cli i
$ studio-cli install dependency-name

build

Build the project.

$ studio-cli build [options]

Options:

  • -p, --part <APM part> - APM part that should be built
    • Available parts: dde, dlo, pov, blo, dfiles
  • -e, --env <environment> - CLI target environment
    • Available environments: lucky, wynni, production (default)
  • --token <API-token> - API Access Token

Manifest Overrides: You can overwrite manifest options using the --option=value syntax.

Examples:

$ studio-cli build
$ studio-cli build --part dlo
$ studio-cli build --env wynni
$ studio-cli build --dlo.mainFile="./dlo/test.dlo"

publish

Publish the project to the registry.

$ studio-cli publish [options]

Options:

  • -ph, --phase <release phase> - Specify a release phase (default: release)
    • Available phases: alpha, beta, rc, release, stage, passive, withdrawn
  • --allowedBackends <null|*|server.xz;server.yz> - Specify the allowedBackends deployment for this version
    • null - No restrictions (default)
    • * - All backends allowed
    • server.xz;server.yz - Specific backend servers (semicolon-separated)
  • -e, --env <environment> - CLI target environment
    • Available environments: lucky, wynni, production (default)
  • --token <API-token> - API Access Token
  • -i, --packagePath <path> - Publish the provided library or app package. Use "*" for autodetection

Examples:

$ studio-cli publish
$ studio-cli publish --phase beta
$ studio-cli publish --allowedBackends "*"
$ studio-cli publish --packagePath ./my-package.tar.gz --env wynni

package (alias: pack)

Package the project.

$ studio-cli package [options]

Options:

  • -ph, --phase <release phase> - Specify a release phase (default: release)
    • Available phases: alpha, beta, rc, release, stage, passive, withdrawn
  • -e, --env <environment> - CLI target environment
    • Available environments: lucky, wynni, production (default)
  • --token <API-token> - API Access Token

Examples:

$ studio-cli package
$ studio-cli pack --phase alpha
$ studio-cli pack --env wynni

run

Build, upload to USB device, and create development site on myDatanet. This command is designed for development and integration testing purposes.

$ studio-cli run -s <serial> --server <url> [options]

Options:

  • -s, --serial <serial> - Device serial number (16 characters hex) [required]
  • --server <url> - myDatanet instance URL (https:// prefix optional). Defaults to MYDATANET_HOST environment variable
  • --customer <customerId> - myDatanet customer UID or ID. Defaults to MYDATANET_CUSTOMER environment variable
  • --mdn-token <token> - myDatanet API token. Defaults to MYDATANET_TOKEN environment variable
  • -p, --part <APM part> - APM part that should be built
    • Available parts: dde, dlo, pov, blo, dfiles
  • -e, --env <environment> - CLI target environment
    • Available environments: lucky, wynni, production (default)
  • --token <API-token> - Studio API Access Token
  • --debug - Enable debug logging

Exit Codes:

  • 0 - Success
  • 1 - Build failed
  • 2 - USB device not found
  • 3 - USB upload failed
  • 4 - myDatanet authentication failed
  • 5 - Development tag upload failed
  • 6 - Site creation failed

Output: On success, the command outputs:

  • Site UID of the newly created/reused development site
  • APM ID of the development tag

Examples:

# Basic usage with environment variables
$ export MYDATANET_TOKEN=your_token
$ export MYDATANET_HOST=myserver.mydatanet.net
$ export MYDATANET_CUSTOMER=your_customer_id
$ studio-cli run -s 1234567890ABCDEF

# Explicit options
$ studio-cli run -s 1234567890ABCDEF --server myserver.mydatanet.net --customer CUST123 --mdn-token your_token

# With build part selection
$ studio-cli run -s 1234567890ABCDEF --server myserver.mydatanet.net --part dlo --debug

# With manifest overrides
$ studio-cli run -s 1234567890ABCDEF --server myserver.mydatanet.net --dlo.mainFile="./dlo/test.dlo"

usb

USB device management commands.

usb list

List available USB devices.

$ studio-cli usb list

usb upload

Upload an AMX binary to a USB device.

$ studio-cli usb upload -s <serial> -f <path> [--debug]

Options:

  • -s, --serial <serial> - Device serial number (16 characters hex) [required]
  • -f, --file <path> - Path to the AMX file (relative to current directory) [required]
  • --debug - Enable debug logging

Example:

$ studio-cli usb upload -s 1234567890ABCDEF -f ./app.amx
$ studio-cli usb upload -s 1234567890ABCDEF -f ./app.amx --debug

Development

Execute commands from the root dir

$ npm run watch:build # or `watch:test` to also build tests

Once the watcher is up and running, you can run out of sources with:

$ node studio-cli

Tests can be executed with:

$ npm test