Introduction
Guides
Dart Package Registry Authentication
Configure the Dart pub tool to authenticate with pckgs.io so it can access private packages in your organization’s registry.
Prerequisites
- A pckgs.io access token with read access to your organization. See Create an Access Token.
- The Dart SDK installed.
Configure Credentials
The Dart pub tool reads authentication tokens from a pub-tokens.json file. Use the dart pub token add command to store your token:
dart pub token add https://dart.pckgs.io/<YOUR_ORG_NAME> When prompted, paste your pckgs.io access token.
To verify, run:
dart pub token list Your token is now stored securely and will be used automatically when resolving packages from https://dart.pckgs.io/<YOUR_ORG_NAME>.
Related
- Dart Package Registry
- How to Install a Dart Package
- How to Publish a Dart Package
- How to Import a Dart Package
Need help? Contact us here or at [email protected].