Foundry(1)
π NAME π
foundry β a command line development environment, and this page lives in the General Commands Manual, section 1, bestie. It's giving "your whole dev setup, but make it a CLI." π«Ά
β¨ SYNOPSIS β¨
foundry [OPTION]... COMMAND [COMMAND-OPTIONS]...
πΈ DESCRIPTION πΈ
okay so, foundry is a development environment and a build system, and it was literally designed for the GNOME desktop. π
It handles all the stuff you'd otherwise be juggling in seventeen terminals at once:
- project management
- build pipeline integration
- SDK management
- and a whole pile of development tools for building applications and libraries
one binary. main character energy. periodt. π
π COMMANDS π
π Project Commands
initβ Initialize a brand new project right here in the current directory. Baby's first project fr fr.
π¦ Environment Commands
enterβ Enter the environment of the project in the current directory. Step inside, bestie.devenv[-- command]β Enter the build environment for the project, similar to how the build pipeline does it. The[-- command]bit lets you hand it a command to run in there.shellβ Start a shell in the project environment. Just vibing, but inside the project.
π§ File Commands
guess-language FILEβ Detect the programming language of a file. It just... knows. π₯grep PATTERN [TARGET...]β Grep files using the search and replace mechanism of Foundry. (Not the plain oldgrep, the Foundry one, okay?)symbol-tree FILEβ List the symbols inFILEas a tree. So aesthetic. π³find-symbol-at FILE LINE LINE_OFFSETβ Find the symbol at a specific position inFILE, atLINEandLINE_OFFSETβ and both of those start counting from1, no cap. Use--treeto print parent symbols as a tree.ctags FILEβ IndexFILEusing the ctags service and output the ctags data to stdout.
π Build Commands
buildβ Build the current build pipeline. The big one. The moment. βrun [-- command]β Run a project command in the runtime environment.
π Pipeline Commands
pipeline infoβ Show information about the build pipeline.pipeline flags FILEβ Show the command used to compile a file.pipeline targetsβ List build targets for the build pipeline.pipeline which PROGRAMβ Find a program in the build pipeline.pipeline invalidateβ Invalidate the pipeline cache. (Cache said bye. π)pipeline link PHASE PROJECT_DIRECTORY LINKED_PHASEβ Link a workspace to the build pipeline. The stage will run atPHASEof the current pipeline and execute the linked pipeline atLINKED_PHASE.pipeline unlink PHASE PROJECT_DIRECTORYβ Unlink a workspace from the build pipeline. Removes entries matchingPHASEandPROJECT_DIRECTORYfrom the linked workspaces.
π Configuration Commands
config listβ List available configurations.config switch CONFIG_IDβ Change the active configuration.
πΈ SDK Commands
sdk listβ List available SDKs.sdk install SDK_IDβ Install a specific SDK.sdk switch SDK_IDβ Change the active SDK for the build pipeline. This will update your current configuration to use the SDK when possible.sdk shell SDK_IDβ Enter a shell in the SDK environment.sdk which SDK_ID PROGRAMβ Show wherePROGRAMis installed inSDK_ID.
π«Ά Dependencies Commands
dependencies listβ List project dependencies.dependencies updateβ Update project dependencies. Heads up though: this does not build the dependencies. Usefoundry buildto build the dependencies.
β¨ Device Commands
device listβ List available devices.device switch DEVICE_IDβ Switch the current target device.
π Deployment Commands
deployβ Deploy the project to the active device.
π§ͺ Test Commands
test listβ List available unit tests.test run TEST_IDβ Run a unit test.
π Search Commands
searchβ Use the global search engine to search across the project.show FILEβ OpenFILEin the preferred file browser.
βοΈ Settings Commands
settings get SCHEMA KEYβ Get a setting value, applying the priority of settings from the user overrides, project settings, and application-wide settings, in that order.settings set SCHEMA KEY VALUEβ Set a setting value. Use--globalto make the setting the user default. Use--projectto make the setting the project default, including for other users who clone the project. Otherwise, the setting applies to the current user for the current project only.
π€« Secret Commands
secret get-api-key HOSTNAME SERVICEβ Get an API key from the secret store. For example,foundry secret get-api-key gitlab.gnome.org gitlabsecret check-expires-at HOSTNAME SERVICEβ Check when an API key expires for a service on a specific hostname. The expiration date will be printed in local timezone.secret rotate HOSTNAME SERVICEβ Rotate an API key for a service on a specific hostname. The API key will be rotated using a registered key rotator plugin, and the new key will be stored securely.secret set-api-key HOSTNAME SERVICE API_KEYβ Store an API key in the secret store.
π©Ί Diagnosis Commands
diagnose FILEβ Diagnose issues withFILE
π§΅ CONDITIONAL COMMANDS π§΅
The following commands are only available when certain features are enabled at build time:
π Git Commands (requires feature-git)
clone URIβ Clone a repository into a new project directory.
π Documentation Commands (requires feature-docs)
doc bundle installβ Install a specific documentation bundle.doc bundle listβ List available documentation bundles.doc query KEYWORDβ Search for documentation.
π¨ Forge Commands (requires feature-forge)
forge listβ List available forge integrations.forge issues listβ List issues from the forge.forge merge-requests listβ List merge requests from the forge.forge projectβ Show information about the forge project.forge switch FORGE_ID/forge switch --clearβ Switch the active forge integration. Use--clearto clear the forge setting instead of setting it.forge userβ Show information about the forge user.
βοΈ Text Editing Commands (requires feature-text)
grepβ Search for text patterns in source files.
π§ LLM Commands (requires feature-llm)
llm list-modelsβ List available language models.llm list-resourcesβ List available resources.llm list-toolsβ List available LLM tools.llm complete MODEL PROMPTβ Complete text using a language model.
π MCP Commands (requires feature-mcp)
mcpβ Run MCP server. The server communicates via stdin/stdout using the Model Context Protocol.
π£οΈ LSP Commands (requires feature-lsp)
lsp listβ List available language server plugins.lsp prefer PLUGIN LANGUAGEβ Set the preferred LSP for a language.lsp run LANGUAGEβ Run a language server for a specific language.
𧬠Template Commands (requires feature-templates)
template create TEMPLATE_ID|TEMPLATE_FILEβ Create a new project from a template.template listβ List available project templates.
πΏ Version Control Commands (requires feature-vcs)
vcs blame FILEβ Show blame information for files.vcs fetch REMOTEβ Fetch changes from remote repositories.vcs ignored FILEβ Check whether a file is ignored.vcs listβ List version control information.vcs list-branchesβ List branches in the repository.vcs list-filesβ List files tracked by version control.vcs list-remotesβ List remote repositories.vcs list-tagsβ List tags in the repository.vcs log FILEβ Show commit history forFILE.vcs switch VCS_IDβ Switch the active version control implementation.
π OPTIONS π
--sharedβ Use shared mode for the command.-h,--helpβ Show help information for the command.
π EXAMPLES π
Initialize a new project:
foundry init
Build the project:
foundry build
Run a project command:
foundry run
Enter the build environment:
foundry devenv
List available SDKs:
foundry sdk list
Install an SDK:
foundry sdk install org.gnome.Sdk/x86_64/master
Start a language server:
foundry lsp run python3
π§© FEATURES π§©
Foundry may be compiled with various features disabled or removed. Some commands may be unavailable if the underlying feature was not compiled into your version of Foundry. Not every build gets every toy β vibe check your own binary, iykyk. π
π SEE ALSO π
For further information, visit the website https://devsuite.app/
π BUGS π
Bug reports can be found and filed at https://gitlab.gnome.org/chergert/foundry/issues
and that's the whole page, bestie!! π this was the General Commands Manual entry for Foundry(1), dated July 2026 β slay, go build something iconic. β¨π¦
π¦ where this page comes from
- arch rolling: foundry 1.2.0-1 Β· LGPL-2.1-or-later
- ubuntu stonking: foundry 1.2.0-2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms