pinset2.1
中文
Source commands

pinset source add

Add a named custom archive source, optionally granting trusted metadata authority.

View source on GitHub
FieldDescription
PurposeAdd a named custom archive source, optionally granting trusted metadata authority.
Syntax and arguments`pinset source add <provider> <alias> --base-url <url> [--allow-insecure
Modifies stateYes. Writes local sources.toml; project lockfiles are unchanged.
Examplepinset source add node mirror --base-url https://mirror.example/node
JSONNo.
Exit0 success; 2 on URL, trust, or write failure.
Key errorsUnsupported Provider, reserved/duplicate alias, invalid URL, insecure URL without opt-in, or invalid trust combination.
/en/docs/commands/source-addPinset 2.1