Goat CLI Migrate Bluesky Account: Step-by-Step
In this article
This guide shows you how to use the Goat CLI to migrate a Bluesky account — meaning you transfer your follows, followers, and lists from one Bluesky account to another, or from a different service (like Twitter) into Bluesky. The Goat CLI is a command-line tool that automates this process, saving you from manually re-following everyone. You'll need a computer with Node.js installed, your current Bluesky account credentials, and the new account you want to migrate to (or the target account's handle).
What You'll Need
- Node.js (version 18 or later) — Goat CLI runs on Node.js. Check with
node -v. - Goat CLI installed — Install globally via npm:
npm install -g goat. - Your source Bluesky account — The account you're migrating from (the one with the follows/followers you want to move).
- Your target Bluesky account — The account you're migrating to. It must already exist and be active.
- App passwords — For both accounts, generate an app password in Bluesky settings (Settings → App Passwords). Do not use your main password.
Step-by-Step
- Install Goat CLI (if not already done):
npm install -g goat - Verify installation:
You should see a version number.goat --version - Create a new directory for your migration to keep things organized:
mkdir bluesky-migration && cd bluesky-migration - Initialize Goat in the directory (this creates a config file):
goat init - Set your source account credentials — Goat uses environment variables or a config file. The easiest way is to set them in your terminal session:
Replace with your actual source handle and app password.export GOAT_SOURCE_HANDLE="your.source.handle" export GOAT_SOURCE_APP_PASSWORD="source-app-password" - Set your target account credentials similarly:
export GOAT_TARGET_HANDLE="your.target.handle" export GOAT_TARGET_APP_PASSWORD="target-app-password" - Run the migration command — The exact command depends on what you're migrating. To migrate follows and followers from one Bluesky account to another:
This will copy your follow list and followers from the source to the target. If you're migrating from Twitter, usegoat migrate bluesky --source $GOAT_SOURCE_HANDLE --target $GOAT_TARGET_HANDLEgoat migrate twitterinstead, but you'll need Twitter API credentials. - Confirm the migration — Goat will prompt you to confirm before making changes. Review the summary and type
yto proceed. - Wait for completion — The tool will process each follow/follower. This may take a few minutes depending on the number of accounts.
- Verify the result — Log into your target Bluesky account and check that your follows and followers are present. You can also run
goat stats --handle $GOAT_TARGET_HANDLEto see counts.
Common Mistakes
- Using your main password instead of an app password — Bluesky requires app passwords for third-party tools. Using your main password will fail with an authentication error.
- Not setting environment variables correctly — If you skip the
exportcommands, Goat won't know which accounts to use and may default to a generic config. - Running the command from the wrong directory — Goat expects to be run from the directory where you ran
goat init. If you run it elsewhere, it may not find the config. - Migrating to an account that already has follows — The migration adds to existing follows; it doesn't replace them. If you want a clean slate, unfollow everyone on the target first.
- Assuming followers are copied automatically — Some versions of Goat only copy follows, not followers. Check the command options with
goat migrate bluesky --helpto see if there's a--followersflag.
Tips
- Test with a small account first — If you have a secondary account with a few follows, try the migration there to understand the process before doing it on your main account.
- Use a .env file — Instead of exporting variables each time, create a
.envfile in your directory and load it withset -a; source .env; set +ato keep credentials secure and handy. - Check rate limits — Bluesky has API rate limits. If you have thousands of follows, the migration may take a while and could hit rate limits. Goat handles this automatically, but be patient.
- Keep your app passwords safe — Never share them or commit them to version control. Revoke them after migration if you're concerned.
- Backup your source account — Before migrating, consider exporting your follows to a CSV file (if Goat supports it) as a backup.
Troubleshooting
- Authentication errors — Double-check your app passwords. Ensure they have no spaces and are copied exactly. Also verify that your handle is correct (e.g.,
user.bsky.social). - Command not found — If
goatisn't recognized, reinstall globally or usenpx goatinstead. - Migration stops midway — This is often due to network issues or rate limits. Simply run the command again; Goat is idempotent and will skip already-processed accounts.
- Followers not migrated — Check the help for a
--followersflag. If not available, you may need to use a different tool or manually follow back. - No output after running — Ensure you're in the correct directory and that environment variables are set. Run
goat debugto see verbose logs.
Frequently Asked Questions
Does Goat CLI migrate my posts and media?
No, Goat CLI only migrates follows, followers, and lists. It does not copy posts, likes, or media. For that, you'd need a separate backup tool.
Can I migrate from Twitter to Bluesky with Goat?
Yes, Goat has a goat migrate twitter command, but it requires Twitter API credentials (bearer token) and may have additional setup steps.
Will my followers on the target account be notified?
Bluesky doesn't notify users when they gain a follower, so no notifications are sent. The migration happens silently.
Can I undo a migration?
There's no built-in undo. You'd have to manually unfollow accounts on the target. To avoid this, test on a dummy account first.
Does Goat CLI work with multiple accounts?
Yes, you can set different environment variables for different migrations, or use a config file to store multiple account profiles.
Is Goat CLI free?
Yes, Goat CLI is an open-source tool and free to use. You only need your Bluesky accounts.