forc-publish

Crates.ioforc-publish
lib.rsforc-publish
version0.69.4
created_at2025-03-11 19:11:07.781454+00
updated_at2025-09-24 17:14:30.006223+00
descriptionForc subcommand for uploading a package to the registry.
homepagehttps://fuel.network/
repositoryhttps://github.com/FuelLabs/sway
max_upload_size
id1588351
size187,838
(fuel-service-user)

documentation

README

forc-publish

Forc subcommand for uploading a package to the registry.

Authentication

Requires either the --token argument to be passed, the environment variable FORC_PUB_TOKEN, or a ~/.forc/credentials.toml file like this:

[registry]
token = "YOUR_TOKEN"

This credential file can be created automatically by running the CLI without the --token argument.

Local development

For local development, run forc.pub, create an API token and then forc publish --registry-url http://localhost:8080

Commit count: 3490

cargo fmt