---
title: "@vltpkg/cli-sdk: config/definition — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/cli-sdk/config/definition"
image: "https://docs.vlt.io/og/client/api-reference/cli-sdk/config/definition"
lang: "en"
---

# config/definition

## Type Aliases

### Commands

```ts
type Commands = typeof commands;
```

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

---

### RecordField

```ts
type RecordField = typeof recordFields[number];
```

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

## Variables

### commandAliases

```ts
const commandAliases: Map<string, string[]>;
```

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

Canonical command names mapped to an array of its aliases

---

### commands

```ts
const commands: object;
```

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

Command aliases mapped to their canonical names

#### Type declaration

| Name         | Type           | Default 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'      |
| `deploy`     | `"deploy"`     | 'deploy'      |
| `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'        |
| `skills`     | `"skills"`     | 'skills'      |
| `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

```ts
const defaultValues: Record<string, unknown>;
```

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

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

```ts
const defaultView: "human" | "json";
```

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

---

### definition

```ts
const definition: Jack<…>;
```

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

---

### recordFields

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

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

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

---

### storeLinkers

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

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

Valid `store-linker` values.

## Functions

### defaultEditor()

```ts
function defaultEditor(): string
```

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

#### Returns

`string`

---

### getCommand()

```ts
function getCommand(s?): 
  | undefined
  | "version"
  | "registry"
  | "cache"
  | "config"
  | "skills"
  | "query"
  | "help"
  | "access"
  | "bugs"
  | "build"
  | "ci"
  | "deploy"
  | "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:113

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `s`?      | `string` |

#### Returns

\| `undefined` | `"version"` | `"registry"` | `"cache"` | `"config"` | `"skills"` | `"query"` | `"help"` | `"access"` | `"bugs"` | `"build"` | `"ci"` | `"deploy"` | `"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()

```ts
function getSortedCliOptions(): string[]
```

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

#### Returns

`string`\[]

---

### getSortedKeys()

```ts
function getSortedKeys(): string[]
```

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

#### Returns

`string`\[]

---

### isRecordField()

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

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

#### Parameters

| Parameter | Type     |
| --------- | -------- |
| `s`       | `string` |

#### Returns

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