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

@osdk/cli

v0.78.0

Published

A CLI for generating OSDKs and managing Foundry site deployments

Readme

@osdk/cli

A CLI for generating OSDKs and managing Foundry site deployments

The CLI may be run directly through npx with npx @osdk/cli@latest. When the NPM package is explicitly installed for example with npm install -g @osdk/cli@latest the osdk binary is also available.

Running locally

Run the following commands from the repository root:

pnpm install
pnpm build
cd packages/cli
./bin/osdk.mjs

site subcommand

The site subcommand allows users to manage their Foundry site

npx @osdk/cli site [subcommand]

Common options

| Option | Description | | ------------- | -------------------------------------------------- | | --foundryUrl | URL for the Foundry stack [string] | | --application | Application resource identifier (rid) [string] | | --token | Foundry API token [string] | | --tokenFile | Path to file containing Foundry API token [string] |

--token and --tokenFile are mutually exclusive and only one can be passed. If neither are passed the CLI runtime looks for these environment variables in order [FOUNDRY_TOKEN, FOUNDRY_SDK_AUTH_TOKEN]. If a token is not specified using any of those options, the CLI will exit with a failure.


Project config file

A foundry.config.json file may be used in your project's root to simplify usage of the CLI by populating default values for commands. The current working directory will be traversed up to the root directory and the first foundry.config.json file, if found, will be used.

An example of a full foundry.config.json is show below:

{
  "foundryUrl": "https://example.palantirfoundry.com",
  "site": {
    "application": "ri.third-party-applications.main.application.1c66b352-4e00-40d2-995d-061c9d533ace",
    "directory": "./dist",
    "autoVersion": {
      "type": "git-describe",
      "tagPrefix": ""
    }
  }
}

The site subcommand is not runnable without passing a specific subcommand i.e (deploy or version)

deploysubcommand

The deploy subcommand allows users to upload new versions of their site and set it as deployed

npx @osdk/cli site deploy

Deploy options

| Option | Description | | ------------ | ------------------------------------------------------------------------------ | | --directory | Directory containing site files [string] | | --version | New version of site to deploy [string] | | --uploadOnly | Upload new site version only without setting as live [boolean][default: false] |

Auto Version options

| Option | Description | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --autoVersion | Enable auto versioning [string][choices: "git-describe", "package-json"] | | --gitTagPrefix | Prefix to match git tags on when 'git-describe' auto versioning is used. If not provided, all tags are matched and the prefix 'v ' is stripped if present. [string] |

--version and --autoVersion are mutually exclusive and only one can be passed.

If git-describe is used for --autoVersion, the CLI will try to infer the version by running the git describe command with optionally --match=<gitTagPrefix> set if --gitTagPrefix is passed.

If package-json is used for --autoVersion, the CLI will try to infer the version by looking at the version field of the nearest package.json file. The current working directory will be traversed up to the root directory and the first package.json file, if found, will be used.

version subcommand

The version subcommand allows users to manage their site versions.

The version subcommand is not runnable without passing a specific subcommand i.e (list or get)

list subcommand

The list subcommand allows users to list their site versions

npx @osdk/cli site version list

get subcommand

The get subcommand allows users to get their live site version

npx @osdk/cli site version get

set <version> subcommand

The set subcommand allows users to set their live site version

npx @osdk/cli site version set 0.1.0

unset subcommand

The unset subcommand allows users to clear their live site version

npx @osdk/cli site version unset

delete <version> subcommand

The delete subcommand allows users to delete a site version

npx @osdk/cli site version delete 0.1.0

Help and debugging

To see all supported commands and their expected arguments, run a command with the --help flag

npx @osdk/cli site version --help

For additional information for debugging, use the --verbose flag

npx @osdk/cli site version --verbose