To download your Anvil app’s code to your computer (without using GitHub), use Anvil’s built-in Git integration, which allows local cloning and export of your entire app. Follow these steps:
Steps to Download Anvil App Code Locally
Open your app in the Anvil online editor.
Click the gear icon (App Menu) at the top of the sidebar and select “Version History”.
In the “Version History” window, find the “Clone with Git” button. Click it to display a git clone command.
Copy the provided git clone command.
Open a terminal on your local computer and run the command. It will look like:
This will create a local folder (MyAnvilApp) containing all the app code and resources, fully independent of GitHub.
Additional Notes
This method gives you the complete app, including server and client code, in a portable format suitable for use with the Anvil App Server or as a backup.[4][3]
If you wish to run the app locally, install the open-source Anvil App Server (pip install anvil-app-server) and follow its documentation.[5][3][4]
This workflow lets you work entirely offline and is not tied to GitHub or other external repositories.[2][1]
Note that if your git clone command contains a % sign (mine does), then your Windows command processor will treat it as the beginning of an environment variable name, thus misinterpreting the entire rest of the command.
In this case, you may need two % signs, or some other workaround.