Getting Started
Installing & Setting Up Archipelago
What you'll learn
- Installing the Archipelago CLI from pub.dev
- Running
archipelago doctorto verify your environment - Authenticating with your Archipelago account
- Understanding the CLI output and common troubleshooting steps
Prerequisites
Before you begin, make sure you have the following installed:
- Flutter SDK (3.47.0 or later, generated projects require it; use 3.47.8 or later, see the note on the TLS certificate fix in Upgrading generated packages)
- Dart SDK (3.13.0 or later for generated projects, and 3.12.0 or later for the CLI itself)
- Git
Step 1: Install the CLI
Install Archipelago globally via pub.dev:
dart pub global activate archipelago_cliVerify the installation:
archipelago --versionStep 2: Run Doctor
The doctor command checks your environment for required tools and configurations:
archipelago doctorThis verifies:
- Dart SDK, Flutter SDK and Git
- Dart tools such as FVM, Mason CLI and Melos (run
archipelago doctor --fixto install missing ones) - Cached bricks
- API connectivity and your login status
Step 3: Authenticate
Log in to your Archipelago account to access your tier's bricks:
archipelago auth loginThis prints a short code and opens the sign-in page in your browser. Sign in or create a free account, type the code on the page, and click Authorize. The CLI signs in by itself, and your token is stored locally.
Step 4: Verify Setup
Run a quick check to confirm everything is working:
archipelago auth statusThe output shows your account email, subscription tier and local brick cache details.
Troubleshooting
| Issue | Solution |
|---|---|
command not found | Ensure ~/.pub-cache/bin is in your PATH |
| Doctor reports missing Mason | Run archipelago doctor --fix, or dart pub global activate mason_cli |
| Browser does not open for login | Open the link the CLI prints, or create a token in the dashboard under CLI Tokens and run archipelago auth login --token <token> |
Next Steps
Now that you have Archipelago installed, head to Creating Your First Project to scaffold a full monorepo.