Skip to content

CLI Flags

The Ptah executable accepts a small set of command-line arguments for automation and troubleshooting.

Terminal window
ptah [workspace-path]

If workspace-path is provided and points to a directory, Ptah opens it as the active workspace on startup. Relative paths are resolved against the current working directory.

FlagArgumentPurpose
--devEnable development mode: verbose logging, DevTools auto-open
--profile<name>Use an isolated user-data directory named <name>; lets you run multiple independent Ptah instances
--user-data-dir<path>Override the user-data directory with an absolute path
--log-level<level>One of error, warn, info, debug, trace
--no-gpuDisable hardware acceleration; useful for flaky GPU drivers
--headlessStart with no visible window; intended for CI / smoke tests
--versionPrint the version and exit
--helpPrint usage and exit

The same behavior is also available through environment variables, which is often more convenient when launching from a shell script:

VariableEquivalent to
PTAH_LOG--log-level
PTAH_PROFILE--profile
PTAH_USER_DATA_DIR--user-data-dir

Open a specific workspace with debug logging:

Terminal window
# Windows
"C:\Users\<you>\AppData\Local\Programs\Ptah\Ptah.exe" "D:\projects\my-app" --log-level=debug
# macOS
/Applications/Ptah.app/Contents/MacOS/Ptah ~/code/my-app --log-level=debug
# Linux
./Ptah-*.AppImage ~/code/my-app --log-level=debug

Run two independent Ptah instances:

Terminal window
Ptah --profile=work
Ptah --profile=personal

Each profile keeps its own settings, plugins, agents, and logs.