arc provider handles operations on provider packages themselves (the npm packages that implement AFS providers), as opposed to arc afs, which operates on what a provider exposes once mounted.
arc provider <subcommand> [options]Global flags (see Overview): --json, --view, --instance / -i (which local ARC instance; omit for default), and --home (instance root; to pick which instance, use --instance).
arc provider publish-resources
Publish a provider package's aup/ tree to CF Pages, under /_providers/<name>@<version>/. This is how a provider's companion resources (like UI snippets referenced from AUP) become fetchable by URL.
Usage
arc provider publish-resources <package> [options]package(required): npm package name, e.g.@aigne/afs-ocap, or a path to the package directory--cloud <fs|cf|none>: deploy target:fswrites a local Pages dir,cfpushes to Cloudflare Pages,nonestages into~/.afs/blocklets-stagingwithout pushing, for batch deploys where only the last command should push (defaultfs)--pages-root <path>: local Pages store root, only for--cloud fs(default~/.arc/pages)--cf-account-id <id>: Cloudflare account ID, used for--cloud cfread operations--cf-api-token <token>: Cloudflare API token, used for--cloud cfread operations--deployment <id>: Cloudflare deployment id (staging/prod/...), resolvespagesProjectfromruntimes/cloudflare/instances.json; mutually exclusive with--project--project <name>: Pages project name, an escape hatch for projects not ininstances.json; mutually exclusive with--deployment; defaults toafsd-blockletswhen neither is set
The --deployment/--project exclusion is declared and enforced, not just documented:
$ arc provider publish-resources @aigne/afs-ocap --deployment foo --project bar
ERROR: Arguments deployment and project are mutually exclusiveA real package publishes to --cloud fs without either flag (the cumulative-staging count keeps growing with every publish to that store, so yours will differ):
$ arc provider publish-resources ./providers/runtime/ocap --cloud fs --pages-root /tmp/pages
Published 23 file(s) to /_providers/ocap@2.0.0-beta.48/
package: ./providers/runtime/ocap
provider: ocap@2.0.0-beta.48
bytes: 170952
target: local Pages store (cumulative staging: 1983 file(s))
deploy: deploy-1789005081569-e83ray