How does Garden work?
Garden gives you the fast feedback of local dev and the realism and testing capabilities of higher environments in one tool.
![red flower](https://cdn.prod.website-files.com/62b28d5404e4318fe1ed6cca/654a909e6d82e4ae152aaf71_6445a8a72ced983625ed4078_e2e-redflower-p-500.webp)
Here's how:
STEP 1
You codify your stack with YAML declarations that describe how your system is built, deployed, and tested.
STEP 2
Garden uses these definitions to create a Stack Graph—a portable, general-purpose dependency-aware blueprint that allows you to deploy the same production-like environments in development and CI.
STEP 3
You deploy your entire stack in a single command in any environment, selectively rebuilding and retesting only the parts that have changed.
![purple flower](https://cdn.prod.website-files.com/62b28d5404e4318fe1ed6cca/654a909ed716b068460b90b2_631f042043d13c89bdd20e96_blue-white-flower-lrg.webp)