vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
  • bugs
  • build
  • cache
  • config
  • create
  • docs
  • exec-cache
  • exec-local
  • exec
  • help
  • init
  • install
  • list
  • login
  • logout
  • pack
  • ping
  • pkg
  • publish
  • query
  • registry
  • repo
  • run-exec
  • run
  • setup
  • token
  • uninstall
  • version
  • whoami
  • Subcommands
  • get
  • init
  • pick
  • set
  • delete
  • Examples
  1. Client
  2. /
  3. Commands
  4. /
  5. pkg

vlt pkg

Usage:

Terminal
$ vlt pkg [<command>] [<args>]

Get or manipulate package.json values

Subcommands

get

Get a single value

Terminal
$ vlt pkg get [<key>]

init

Initialize a new package.json file in the current directory

Terminal
$ vlt pkg init

pick

Get multiple values or the entire package

Terminal
$ vlt pkg pick [<key> [<key> ...]]

set

Set one or more key value pairs

Terminal
$ vlt pkg set <key>=<value> [<key>=<value> ...]

delete

Delete one or more keys from the package

Terminal
$ vlt pkg delete <key> [<key> ...]

Examples

Set a value on an object inside an array

Terminal
$ vlt pkg set "array[1].key=value"

Append a value to an array

Terminal
$ vlt pkg set "array[]=value"

PreviouspingNextpublish

On this page

  • Subcommands
  • get
  • init
  • pick
  • set
  • delete
  • Examples
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now