Re-fetch registered marketplace sources to pick up new, changed, or removed plugins while keeping the enabled state of the plugins that survive.
pks marketplace refresh [ID]$ pks marketplace refresh my-marketplaceRe-fetch one marketplace source
$ pks marketplace refreshRe-fetch every registered marketplace
pks marketplace refresh re-reads the marketplace.json from each registered marketplace's original source and rebuilds the local plugin list from it. Enabled state carries over for plugins that still exist under the same name; anything new arrives disabled; anything that vanished upstream is dropped.
raw.githubusercontent.com path at the ref recorded when the marketplace was added.pks marketplace refresh my-marketplace
The plugin list is replaced with the freshly fetched one and the entry's last-fetched timestamp is updated.
Omit the ID to sweep every registered marketplace in one pass:
pks marketplace refresh
Failures are handled per marketplace: one bad source is reported and the rest still refresh and save. The command exits non-zero overall if any marketplace failed.
Compare the counts, then read the detail:
pks marketplace list
pks marketplace show my-marketplace
New plugins appear with enabled set to no. Re-enable the ones you want with pks marketplace enable.
refresh takes no flags.
| Argument | Required | Description |
|---|---|---|
ID | no | Marketplace ID to refresh. Omit to refresh every registered marketplace. |
{url}/policy document that add fetches for URL sources is not fetched again. The plugin snapshot is rebuilt carrying over only the enabled flag, not the required flag, so required-plugin protection set at add time is effectively reset. Re-run pks marketplace add against the URL source when you need the policy applied again.github: source is re-fetched at the ref stored when it was added.Unexpected plugins appeared or disappeared. A github: source pinned to a moving branch such as main follows whatever is on that branch. Re-add the marketplace with a pinned ref — pks marketplace add github:owner/repo@v2 — to stop it drifting.
A required plugin is now disableable. Refresh rebuilds plugin entries without the policy-derived required flag. Re-run add against the URL source to restore it.
The bulk refresh exited non-zero but some marketplaces updated. That is the design. Per-marketplace errors are reported individually, the successful refreshes are saved, and the non-zero exit reports that at least one source failed. Read the output to see which one.
The fetch fails where add succeeded. The source moved, the ref was deleted, or the document is no longer publicly readable. Verify the URL or repository path, then re-add if the source relocated.