A CLion dev environment butler for embedded and multi-chip projects.
Alfred saves your current CLion project setup and IDE settings into named profiles, then lets you switch between them when you move between chips, toolchains, SDKs, debuggers, or board configurations.
CLion keeps many development choices in project and IDE settings: toolchains, CMake presets, SDK paths, debugger settings, embedded tools, and other local configuration. Once a setup works, recreating it later by hand is slow and easy to get wrong.
Alfred treats a known-good CLion setup as a named profile. Save it when the environment is correct, update it when the setup changes, and switch back to it when you need that environment again.
Alfred is a platform-independent CLion plugin. The same alfred.zip release
artifact can be installed on CLion for Windows, macOS, and Linux.
Profiles are snapshots of local CLion settings, so they may contain machine-specific paths such as compiler locations, SDK paths, debugger paths, or probe tools. For cross-machine or cross-OS work, keep separate profiles for each machine or normalize those paths in CLion before saving the profile.
Use this when you want to install Alfred from a release zip:
- Open the Alfred Releases page.
- Download
alfred.zipfrom the latest release. - In CLion, open
Settings | Plugins. - Click the gear icon.
- Choose
Install Plugin from Disk.... - Select the downloaded
alfred.zip. - Restart CLion when prompted.
Use this when Alfred is available from the JetBrains Marketplace.
- Open
Settings | Plugins. - Select the
Marketplacetab. - Search for
Alfred. - Click
Install. - Restart CLion when prompted.
After installation, Alfred is available from:
Tools > Alfred
Every push to master builds alfred.zip with GitHub Actions. Versioned tags
publish a GitHub Release and attach the installable plugin zip.
The release workflow builds on Linux only because IntelliJ Platform plugin zips
are Java artifacts and are not OS-specific. The generated alfred.zip is the
one file users install on every CLion-supported platform.
To publish a release:
git tag v1.0.0
git push origin v1.0.0- Open your CLion project.
- Configure CLion for one target chip or environment.
- Go to
Tools > Alfred > Save Current Config as Profile.... - Enter a profile name, for example
stm32f4-debug. - Change CLion settings for another target.
- Save another profile, for example
hpm6750-release. - Use
Tools > Alfred > Switch Profile...to choose the environment you want. - Close and reopen CLion to activate the switched profile.
Use:
Tools > Alfred > Save Current Config as Profile...
Use this when you have configured CLion for a new chip, board, toolchain, SDK, debugger, or CMake setup and want to keep it as a reusable profile.
Profile names are cleaned automatically so they are safe for the filesystem.
For example, spaces and unusual characters are converted to -.
Use:
Tools > Alfred > Update Active Profile
Use this after changing settings that belong to the profile you are already working in. You do not need to remember and retype the profile name.
If no active profile is set yet, Alfred lets you choose which saved profile to update.
Use:
Tools > Alfred > Switch Profile...
Choose a saved profile, then close and reopen CLion. Alfred applies the profile as CLion shuts down so the next startup loads the selected environment cleanly.
This restart step is intentional. Many CLion and IntelliJ Platform settings are kept live in memory while the IDE is running. Applying a full profile during runtime can be overwritten by the IDE later, so Alfred stages the switch for the next startup instead.
Alfred snapshots the project and IDE configuration that normally defines a CLion development environment:
- Project
.ideasettings. CMakePresets.json.CMakeUserPresets.json.- CLion IDE configuration files from the CLion config directory.
It skips runtime/cache data that should not be copied between profiles, including:
- Installed plugins.
- Logs and temp files.
- Event-log metadata.
- Lock files.
- IDE database files.
Profiles are stored in your CLion config directory, not inside the project:
<CLion config directory>/clion-dev-envs/
This keeps profiles available across projects and avoids polluting your source tree with local IDE snapshots.
Alfred also migrates older project-local profiles from:
<project>/clion-dev-envs/
when it finds them.
- Save or update a profile after you finish configuring a target.
- Switch profiles before starting work on a different target.
- Restart CLion after switching so the selected IDE and project settings are loaded consistently.
- Keep source-controlled project files separate from local CLion profile data.
Alfred is released under the Apache License 2.0. See LICENSE.
