# Migrate from older versions

You can migrate your existing setup to the new version of spotify\_sync.

### Config

This will output a new config.json matching the new schema

> spotify\_sync utils migrate-config --config /path/to/legacy/config.json

### Migrate to profile

If you want to migrate everything into a config profile, use the following:

```
Usage: spotify_sync utils migrate-to-profile [OPTIONS]

  Migrate historical config and cache to a profile

Options:
  Input config object: [mutually_exclusive, required]
  --config PATH                   Path to a separate config file
  --spotify PATH                  Path to a Spotify song json file to migrate
                                  [required]
  --processed PATH                Path to a processed song json file to
                                  migrate  [required]
  --profile TEXT                  Name of a (non existent) profile to migrate
                                  settings to  [required]
  --config-schema-mode [legacy|latest]
                                  Specify schema of config file  [default:
                                  legacy]
  --help                          Show this message and exit.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spotify-sync.jbh.cloud/general/migrate-from-older-versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
