Source commands
pinset source add
Add a named custom archive source, optionally granting trusted metadata authority.
View source on GitHub ↗| Field | Description |
|---|---|
| Purpose | Add a named custom archive source, optionally granting trusted metadata authority. |
| Syntax and arguments | `pinset source add <provider> <alias> --base-url <url> [--allow-insecure |
| Modifies state | Yes. Writes local sources.toml; project lockfiles are unchanged. |
| Example | pinset source add node mirror --base-url https://mirror.example/node |
| JSON | No. |
| Exit | 0 success; 2 on URL, trust, or write failure. |
| Key errors | Unsupported Provider, reserved/duplicate alias, invalid URL, insecure URL without opt-in, or invalid trust combination. |
/en/docs/commands/source-addPinset 2.1