I wouldn’t say from the bootstrap here, but depending on your migration process you could script the usage of the yarn strapi config:restore ... command. Just be careful about committing the dump file into source control if you are using any 3rd party auth providers are their secret keys are also stored there.
For more information about why we don’t store these in the settings files see: Troubleshooting - Strapi Developer Documentation