vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • config/definition
  • Type Aliases
  • Commands
  • RecordField
  • Variables
  • commandAliases
  • commands
  • defaultValues
  • defaultView
  • definition
  • recordFields
  • storeLinkers
  • Functions
  • defaultEditor()
  • getCommand()
  • getSortedCliOptions()
  • getSortedKeys()
  • isRecordField()
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/cli-sdk
  6. /
  7. Config
  8. /
  9. config/definition

config/definition

Type Aliases

Commands

TypeScript
type Commands = typeof commands;

Defined in: src/cli-sdk/src/config/definition.ts:109


RecordField

TypeScript
type RecordField = typeof recordFields[number];

Defined in: src/cli-sdk/src/config/definition.ts:130

Variables

commandAliases

TypeScript
const commandAliases: Map<string, string[]>;

Defined in: src/cli-sdk/src/config/definition.ts:96

Canonical command names mapped to an array of its aliases


commands

TypeScript
const commands: object;

Defined in: src/cli-sdk/src/config/definition.ts:88

Command aliases mapped to their canonical names

Type declaration

NameTypeDefault value
?"help"'help'
access"access"'access'
add"install"'install'
b"build"'build'
bugs"bugs"'bugs'
build"build"'build'
cache"cache"'cache'
ci"ci"'ci'
config"config"'config'
create"create"'create'
deprecate"deprecate"'deprecate'
dist-tag"dist-tag"'dist-tag'
docs"docs"'docs'
exec"exec"'exec'
exec-cache"exec-cache"'exec-cache'
exec-local"exec-local"'exec-local'
h"help"'help'
help"help"'help'
i"install"'install'
info"view"'view'
init"init"'init'
install"install"'install'
list"list"'list'
login"login"'login'
logout"logout"'logout'
ls"list"'list'
outdated"outdated"'outdated'
p"pkg"'pkg'
pack"pack"'pack'
ping"ping"'ping'
pkg"pkg"'pkg'
profile"profile"'profile'
pub"publish"'publish'
publish"publish"'publish'
q"query"'query'
query"query"'query'
r"run"'run'
registry"registry"'registry'
repo"repo"'repo'
rm"uninstall"'uninstall'
run"run"'run'
run-exec"run-exec"'run-exec'
run-script"run"'run'
rx"run-exec"'run-exec'
setup"setup"'setup'
show"view"'view'
token"token"'token'
u"update"'update'
uninstall"uninstall"'uninstall'
unpublish"unpublish"'unpublish'
update"update"'update'
version"version"'version'
view"view"'view'
whoami"whoami"'whoami'
x"exec"'exec'
xc"exec-cache"'exec-cache'
xl"exec-local"'exec-local'

defaultValues

TypeScript
const defaultValues: Record<string, unknown>;

Defined in: src/cli-sdk/src/config/definition.ts:949

The pristine default of every known config field, captured here at module load, before anything can call jack.setConfigValues().

Config layers are applied by overwriting jackspeak's defaults, and setConfigValues() can only set them. So when a layer stops setting a field (or removes it with null), the definitional default has to be put back explicitly, otherwise a value left behind by a previous apply would leak through.


defaultView

TypeScript
const defaultView: "human" | "json";

Defined in: src/cli-sdk/src/config/definition.ts:5


definition

TypeScript
const definition: Jack<…>;

Defined in: src/cli-sdk/src/config/definition.ts:168


recordFields

TypeScript
const recordFields: readonly ["git-hosts", "registries", "git-host-archives", "scoped-registries", "jsr-registries"];

Defined in: src/cli-sdk/src/config/definition.ts:122

Fields that are parsed as a set of key=value pairs


storeLinkers

TypeScript
const storeLinkers: readonly ["auto", "hardlink", "clone", "copy", "unpack"];

Defined in: src/cli-sdk/src/config/definition.ts:136

Valid store-linker values.

Functions

defaultEditor()

TypeScript
function defaultEditor(): string

Defined in: src/cli-sdk/src/config/definition.ts:14

Returns

string


getCommand()

TypeScript
function getCommand(s?): 
  | undefined
  | "version"
  | "registry"
  | "cache"
  | "config"
  | "query"
  | "help"
  | "access"
  | "bugs"
  | "build"
  | "ci"
  | "create"
  | "deprecate"
  | "dist-tag"
  | "docs"
  | "exec"
  | "exec-local"
  | "init"
  | "install"
  | "login"
  | "logout"
  | "list"
  | "outdated"
  | "pack"
  | "ping"
  | "pkg"
  | "profile"
  | "publish"
  | "repo"
  | "run-exec"
  | "run"
  | "setup"
  | "token"
  | "uninstall"
  | "unpublish"
  | "update"
  | "exec-cache"
  | "view"
  | "whoami"

Defined in: src/cli-sdk/src/config/definition.ts:111

Parameters

ParameterType
s?string

Returns

| undefined | "version" | "registry" | "cache" | "config" | "query" | "help" | "access" | "bugs" | "build" | "ci" | "create" | "deprecate" | "dist-tag" | "docs" | "exec" | "exec-local" | "init" | "install" | "login" | "logout" | "list" | "outdated" | "pack" | "ping" | "pkg" | "profile" | "publish" | "repo" | "run-exec" | "run" | "setup" | "token" | "uninstall" | "unpublish" | "update" | "exec-cache" | "view" | "whoami"


getSortedCliOptions()

TypeScript
function getSortedCliOptions(): string[]

Defined in: src/cli-sdk/src/config/definition.ts:957

Returns

string[]


getSortedKeys()

TypeScript
function getSortedKeys(): string[]

Defined in: src/cli-sdk/src/config/definition.ts:968

Returns

string[]


isRecordField()

TypeScript
function isRecordField(s): s is "registries" | "scoped-registries" | "jsr-registries" | "git-hosts" | "git-host-archives"

Defined in: src/cli-sdk/src/config/definition.ts:132

Parameters

ParameterType
sstring

Returns

s is "registries" | "scoped-registries" | "jsr-registries" | "git-hosts" | "git-host-archives"


PreviousviewNext@vltpkg/cmd-shim

On this page

  • Type Aliases
  • Commands
  • RecordField
  • Variables
  • commandAliases
  • commands
  • defaultValues
  • defaultView
  • definition
  • recordFields
  • storeLinkers
  • Functions
  • defaultEditor()
  • getCommand()
  • getSortedCliOptions()
  • getSortedKeys()
  • isRecordField()

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