FEx Pub
FEx Pub is your organization's private package registry. It speaks pub.dev's protocol, so dart pub and flutter pub work with it as they are. Every read needs a token, and every package you publish gets pub points and a Security Score.
Give dart pub your token
Mint a Pub token on the Control Room's Tokens screen (Getting Started walks through it, screen by screen), then give it to dart pub, once per computer:
dart pub token add https://pub.fex.flutterrific.ioWhen it prompts Enter secret token:, paste the token and press Enter. The prompt shows nothing as you paste; that is expected.
dart pub keeps the token for that host and sends it only there. To see your tokens, replace one or remove one:
dart pub token list # the hosts you have tokens for
dart pub token remove https://pub.fex.flutterrific.ioRunning dart pub token add again with a new token replaces the old one.
A token reaches the packages its owner may use, and no more. Organization admins have every package. Anyone else has the packages an admin granted them on the Control Room's Pub screen.
Depend on a private package
Name your FEx Pub as the package's host:
# pubspec.yaml
dependencies:
acme_models:
hosted: https://pub.fex.flutterrific.io
version: ^1.2.0Send every package through your FEx Pub
Set PUB_HOSTED_URL and every package comes from your FEx Pub, public ones included. It fetches each public package from pub.dev, checks the archive against pub.dev's sha256, and applies your organization's security policy before it serves the package. Your pubspecs stay as they are.
export PUB_HOSTED_URL=https://pub.fex.flutterrific.io
dart pub getSet it on every computer and in CI, so everyone resolves through the same registry and the lockfile names one host. Your Pub token already covers it.
What your policy holds back, and why, is on Pub security.
Publish a package
Point publish_to at your FEx Pub, then publish as usual. Your token needs write access, and the package must be one you may publish.
# pubspec.yaml
name: acme_models
version: 1.3.0
publish_to: https://pub.fex.flutterrific.iodart pub publishdart pub won't publish without a LICENSE file. For a private package a proprietary notice is enough, and it earns the license points that pub.dev gives only to open-source licenses. An empty file or the template's placeholder earns none.
Copyright (c) 2026 Acme, Inc. All rights reserved.
This software is proprietary and confidential. Unauthorized copying,
distribution or use is prohibited.Once a version is published, FEx Pub analyzes it. The package's Scores tab shows its pub points and its Security Score when the analysis finishes; Pub security explains both.
Publish your app, with its symbols
Publish each release of a Flutter app with its symbols in the archive, and the Symbolizer turns its obfuscated crashes back into your files and lines. Publishing is the upload; there is no separate step.
flutter build apk --release --obfuscate --split-debug-info=symbols/
flutter build web --release --source-maps
dart pub publish # the .symbols and .js.map files ride in the archiveRetract a version
On your FEx Pub, open the package's Admin tab and retract the version. dart pub stops choosing it, and builds already pinned to it keep working. Unlike pub.dev, there is no seven-day limit: a package admin can retract any version at any time, and undo it.
From CI
CI reads and publishes with no stored secret: each job trades its CI provider's identity token for a Pub token that lasts 15 minutes. Pub from CI has every provider's workflow.