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

ns-metadata-cli

v1.0.1

Published

CLI for fetching record metadata from NetSuite

Downloads

307

Readme

NetSuite Metadata CLI

A command line tool for fetching record metadata from NetSuite using the REST metadata catalog API.

Companion to suiteql-cli and works the same way: multiple nicknamed accounts, browser-based OAuth 2.0 login, and the most recently used account is remembered automatically.

Installation

npm install -g ns-metadata-cli

This adds a new nsmeta command to your PATH.

nsmeta -help

Usage

Run without a record type to list every record type available in the account, or pass one or more record types with -r to get their field metadata.

You can manually choose an account with -a, or the tool will automatically remember which account was used most recently. Account names can be anything you would like.

Metadata can be output as a field table (default), CSV (-csv), the raw JSON Schema (-json), or an OpenAPI 3.0 document (-openapi).

Authentication into NetSuite is accomplished in the browser via OAuth 2.0. You must have the OAuth 2.0 feature enabled in your account under Setup -> Company -> Enable Features -> SuiteCloud. Your role must also have the following permissions:

  • Setup -> REST Web Services
  • Setup -> Log in using OAuth 2.0 Access Tokens

Examples

List all record types in an account:

nsmeta -a production

View the fields of a record type as a table:

nsmeta -a production -r salesorder

Write the fields of a record type, with descriptions, to a CSV file:

nsmeta -r salesorder -desc -csv > salesorder-fields.csv

Save the raw JSON Schema of a record type:

nsmeta -r salesorder -json > salesorder-schema.json

Generate an OpenAPI 3.0 document for several record types:

nsmeta -r customer,salesorder,invoice -openapi > netsuite-api.json

Arguments

| Flag | Definition | | -------- | ------------------------------------------------------------------------------------------------ | | -help | View a full list of arguments | | -a | Account nickname to fetch metadata from. If none is provided, the last used account will be used | | -r | Record type(s) to fetch metadata for. Multiple types can be comma-separated | | -desc | Includes field descriptions in the field table (truncated in table output; full text in CSV) | | -csv | Outputs the field table or record type list as CSV. Default output is a table | | -json | Outputs the raw JSON Schema (or the record type list) as JSON. Default output is a table | | -openapi | Outputs an OpenAPI 3.0 document for the record type(s) | | -list | Lists all accounts and their expiration status | | -reset | Removes all account authentication data. |

Development

npm install
npm run build
node dist/index.js -help