WordPress Studio - CLI - Studio config file not found - Solved

Problem Summary

WordPress Studio has a Linux path bug in its CLI component.

What happened

When you create a site, the Electron GUI spawns a separate CLI process to do the work. The CLI needs to read the app’s config file (appdata-v1.json).

The bug: The CLI’s getAppdataDirectory() function only handles two cases:

Windows → %APPDATA%\Studio

Everything else → ~/Library/Application Support/Studio (macOS path)

Linux isn’t handled, so it defaults to the macOS path — which doesn’t exist on Linux.

Meanwhile, the Electron GUI correctly uses Linux’s XDG standard:

  • ~/.config/Studio/appdata-v1.json

The fix

I created a symlink so the CLI can find the config where it expects it:

mkdir -p ~/Library/Application\ Support

ln -sf ~/.config/Studio ~/Library/Application\ Support/Studio


### Root cause

This is an upstream bug in WordPress Studio — the CLI wasn't updated for Linux support even though the app was recently ported to Linux.

To me this seems to be a bypass, not a fix.

But I assume your last line is from a bug report upstream?