vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
    • Overview
    • config
    • index
    • Reference
    • view
  • Type Aliases
  • Command<T>
  • CommandFn()<T>
  • CommandUsage()
  • Functions
  • default()
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/cli-sdk
  6. /
  7. index

index

Type Aliases

Command<T>

TypeScript
type Command<T> = object;

Defined in: src/cli-sdk/src/load-command.ts:16

Type Parameters

Type Parameter
T

Type declaration

NameTypeDescription
commandCommandFn<T>-
needsNpmRegistry?booleanSet to true by commands that install packages (install, update, uninstall, ci, exec/vlx). outputCommand() fails early with an ECONFIG error when the alias bare specs resolve through (registries.npm, or the alias named by default-registry-alias) is not configured.
needsRegistry?booleanSet to true by commands that hit a registry or resolve registry specs. There is no default registry, so outputCommand() fails early with an ECONFIG error when one of these runs unconfigured.
usageCommandUsage-
viewsViews<T>-

CommandFn()<T>

TypeScript
type CommandFn<T> = (conf) => Promise<T>;

Defined in: src/cli-sdk/src/load-command.ts:12

A command function that may return a result of T. If the result is undefined, no final output will be displayed by default.

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
confLoadedConfig

Returns

Promise<T>


CommandUsage()

TypeScript
type CommandUsage = () => Jack;

Defined in: src/cli-sdk/src/load-command.ts:6

Returns

Jack

Functions

default()

TypeScript
function default(): Promise<void>

Defined in: src/cli-sdk/src/index.ts:70

Returns

Promise<void>


PreviousconfigNextReference

On this page

  • Type Aliases
  • Command<T>
  • CommandFn()<T>
  • CommandUsage()
  • Functions
  • default()

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