Skip to content

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"