cd /news/developer-tools/import-export-raycast-preferences-wi… · home topics developer-tools article
[ARTICLE · art-10153] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Import/export Raycast preferences with GIt history

Raycast's default preference export creates a compressed `.rayconfig` file, which is difficult to track in a Git repository and requires a pro subscription for cloud syncing. To obtain a usable JSON file, users must first export settings without a password, then decompress the file using `gzip --decompress --keep --suffix .rayconfig`. The resulting JSON can be recompressed and imported back into Raycast, though syncing remains a challenge without manual user input via deeplinks.

read1 min views18 publishedJul 31, 2024

Raycast has a feature to import/export preferences in a .rayconfig file format. This isn't ideal for use in a dotfiles-esque Git repository since it would be difficult to compare changes with a compressed file. Also, unfortunately, syncing is only possible on a pro subscription and only through Raycast's cloud service. To get a more useful JSON file from the .rayconfig (example shown in example.rayconfig.json), you will have to first have to export a decrypted version. Go to Settings > Extensions > Raycast > Export Settings & Data and under "Export Password," which by default is 12345678, you will want to delete that. After that, run the "Export Settings & Data" command. You should be able to export all of the preferences (Settings, Extensions, Floating Notes, Script Directories, Snippets) except Quicklinks without setting a password. Then, in terminal, run gzip --decompress --keep --suffix .rayconfig NAME_OF_FILE.rayconfig and you should get a JSON file similar to example.rayconfig.json. After that, you can get it back into .rayconfig format using gzip --keep --suffix .rayconfig NAME_OF_FILE and then run "Import Settings & Data" command to get it back. As for syncing, I am not sure of a way to do it. Deeplinks may be a path but it still requires some input from the user (raycast://extensions/raycast/raycast/export-settings-data and raycast://extensions/raycast/raycast/import-settings-data). Let me know if you have any thoughts

── more in #developer-tools 4 stories · sorted by recency
── more on @raycast 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/import-export-raycas…] indexed:0 read:1min 2024-07-31 ·