@vltpkg/cli-sdk/config/definition
Type Aliases
Commands
type Commands = typeof commandsDefined in: src/cli-sdk/src/config/definition.ts:91
RecordField
type RecordField = (typeof recordFields)[number]Defined in: src/cli-sdk/src/config/definition.ts:112
Variables
commandAliases
const commandAliases: Map<string, string[]>Defined in: src/cli-sdk/src/config/definition.ts:78
Canonical command names mapped to an array of its aliases
commands
const commands: objectDefined in: src/cli-sdk/src/config/definition.ts:70
Command aliases mapped to their canonical names
Type declaration
?
readonly ?: "help" = 'help';add
readonly add: "install" = 'install';build
readonly build: "build" = 'build';cache
readonly cache: "cache" = 'cache';ci
readonly ci: "ci" = 'ci';config
readonly config: "config" = 'config';docs
readonly docs: "docs" = 'docs';exec
readonly exec: "exec" = 'exec';exec-cache
readonly exec-cache: "exec-cache" = 'exec-cache';exec-local
readonly exec-local: "exec-local" = 'exec-local';h
readonly h: "help" = 'help';help
readonly help: "help" = 'help';i
readonly i: "install" = 'install';init
readonly init: "init" = 'init';install
readonly install: "install" = 'install';list
readonly list: "list" = 'list';login
readonly login: "login" = 'login';logout
readonly logout: "logout" = 'logout';ls
readonly ls: "list" = 'list';pack
readonly pack: "pack" = 'pack';pkg
readonly pkg: "pkg" = 'pkg';publish
readonly publish: "publish" = 'publish';query
readonly query: "query" = 'query';r
readonly r: "run" = 'run';rm
readonly rm: "uninstall" = 'uninstall';run
readonly run: "run" = 'run';run-exec
readonly run-exec: "run-exec" = 'run-exec';run-script
readonly run-script: "run" = 'run';rx
readonly rx: "run-exec" = 'run-exec';serve
readonly serve: "serve" = 'serve';token
readonly token: "token" = 'token';u
readonly u: "uninstall" = 'uninstall';uninstall
readonly uninstall: "uninstall" = 'uninstall';update
readonly update: "update" = 'update';version
readonly version: "version" = 'version';whoami
readonly whoami: "whoami" = 'whoami';x
readonly x: "exec" = 'exec';xc
readonly xc: "exec-cache" = 'exec-cache';xl
readonly xl: "exec-local" = 'exec-local';defaultView
const defaultView: 'json' | 'human'Defined in: src/cli-sdk/src/config/definition.ts:5
definition
const definition: Jack<  object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object &    object>Defined in: src/cli-sdk/src/config/definition.ts:155
recordFields
const recordFields: readonly [  'git-hosts',  'registries',  'git-host-archives',  'scope-registries',  'jsr-registries',]Defined in: src/cli-sdk/src/config/definition.ts:104
Fields that are parsed as a set of key=value pairs
Functions
defaultEditor()
function defaultEditor(): stringDefined in: src/cli-sdk/src/config/definition.ts:14
Returns
string
getCommand()
function getCommand(  s?,):  | undefined  | 'build'  | 'version'  | 'pkg'  | 'cache'  | 'config'  | 'run'  | 'install'  | 'init'  | 'update'  | 'query'  | 'token'  | 'ci'  | 'docs'  | 'exec'  | 'exec-local'  | 'help'  | 'login'  | 'logout'  | 'list'  | 'pack'  | 'publish'  | 'run-exec'  | 'serve'  | 'uninstall'  | 'exec-cache'  | 'whoami'Defined in: src/cli-sdk/src/config/definition.ts:93
Parameters
s?
string
Returns
| undefined | "build" | "version" | "pkg" | "cache" |
"config" | "run" | "install" | "init" | "update" |
"query" | "token" | "ci" | "docs" | "exec" |
"exec-local" | "help" | "login" | "logout" | "list" |
"pack" | "publish" | "run-exec" | "serve" | "uninstall"
| "exec-cache" | "whoami"
getSortedCliOptions()
function getSortedCliOptions(): string[]Defined in: src/cli-sdk/src/config/definition.ts:701
Returns
string[]
getSortedKeys()
function getSortedKeys(): string[]Defined in: src/cli-sdk/src/config/definition.ts:712
Returns
string[]
isRecordField()
function isRecordField(  s,): s is  | 'registries'  | 'git-hosts'  | 'git-host-archives'  | 'scope-registries'  | 'jsr-registries'Defined in: src/cli-sdk/src/config/definition.ts:114
Parameters
s
string
Returns
s is “registries” | “git-hosts” | “git-host-archives” | “scope-registries” | “jsr-registries”