Have you ever wanted to edit your Anvil apps locally, then test them instantly? What if you could Alt+Tab between VS Code (or Claude Code) and the Anvil Editor – with all your changes updating live?
Introducing the Anvil CLI
The new Anvil CLI supports bidirectional sync between your local machine and Anvil itself. Changes you make in Anvil appear on your local machine. Changes you make on your local machine appear in Anvil.
We know lots of you prefer to use local tools like PyCharm to edit your Python code, but still want to use the Anvil Designer for the front end. Now, you can – just install the CLI and run anvil watch, then switch back and forth as you please.
It’s great for AI.
Time to break out Claude Code on your Anvil codebase. When your local AI agent makes changes to your code, you can instantly preview it in the Anvil Designer - or hit Run and take it for a spin! Our colleagues have described it as “addictive”.
Come learn more at the Anvil User Group
I will be talking about the Anvil CLI, showing what it can do and answering questions in Wednesday’s Anvil User Group meeting! Come see what it can do, find out how it works, and more.
Sign up here to get the link:
It’s still in beta – give us feedback!
You saw the [BETA] tag, you know what that means – we want you to try this out on your own machine and tell us how it works! If something goes wonky, please post in the Q&A forum.
Installing the CLI
On Mac / Linux:
Open a terminal and run:
curl -fsSL https://anvil.works/install-cli.sh | sh
On Windows:
Open the Command Prompt and run:
curl -fsSL https://anvil.works/install-cli.cmd -o install.cmd && install.cmd && del install.cmd
(there’s also a PowerShell option in the docs)
Using the CLI
- Run
anvil configureto log into Anvil - Run
anvil checkoutto choose an app and check it out locally cdinto the app’s source code and runanvil watchto sync your app
Voila – every change you make in the Anvil Editor will be replicated into your local checkout, and every change you make locally will propagate to Anvil!
Try opening the same source file in VS Code and the Anvil Editor, then editing some code!
If you already have an Anvil app checked out with Git, you can use your existing checkout – just run anvil watch in that directory.
More help
To learn more and for a quick-start guide, check out the documentation: