# Migrating From Legacy "Repeater" to New Private Locations

The `escapetech/cli` image creates a Private Location by name if it doesn't exist and connects it to your Escape account using your API key. This replaces manual repeater creation and ID configuration with `escapetech/repeater`.

If you're using the legacy `escapetech/repeater` image, follow these steps to migrate to the new CLI-based approach:

1. Retrieve your API key from your [profile page](<https://app.escape.tech/user/profile/>)
2. Update your configuration:

   - Remove the `ESCAPE_REPEATER_ID` environment variable
   - Add the `ESCAPE_API_KEY` environment variable
   - Update the startup command to `locations start -v location-name` where `location-name` is your desired location name
3. Switch from the `escapetech/repeater` image to the `escapetech/cli:latest` image
