Saving, publishing and working on different versions of your app
Anvil apps have full version control backed by Git.
Follow this quickstart to create an app with two different versions, and publish a particular version of the app.
Log in to Anvil and click ‘New Blank App’. Choose the Material Design theme.
You will see your app in the centre of the screen. On the right is the Toolbox, which contains components to drag-and-drop.
Drop a Label into the page.
Select it and change its
text property to
This is version 1.0 using the Properties Panel on the right.
Click the ‘Save this version’ button at the bottom of the App Browser. Enter
version 1.0 into the text box.
Now click on ‘View history’. You will see a dialog like this:
Close this dialog and change the
text property of your Label to say
This is version 1.1.
Click the ‘Save this version’ button again and enter
Now click on ‘View history’. Your history will now look like this:
Click on the ‘Publish’ link at the bottom of the
version 1.0 commit. The history view will show a ‘Published’ label on the commit:
Now your app will run a different version in the Anvil Editor to the one it runs online.
Click the ‘Run’ button at the top of the screen.
This is version 1.1.
Click on ‘Publish this app’ in the top-right corner of the screen. You’ll see a dialog like this:
Click on the link in the ‘Share via private link’ box. You’ll see something like this:
This is how your app looks to your users. The Label says
This is version 1.0 - your published version is
different from your development version. You can go on developing your app and only publish your changes when they’re ready.
Want more depth on this subject?
Each app is a Git repository. You can clone a repo containing the app’s code and configuration files, work with it on your own machine and make commits, then push back to Anvil.
Read the Version Control section to find out more.
What another quickstart?
Every quickstart is on the Quickstarts page.
Do you still have questions?
Our Community Forum is full of helpful information and Anvil experts.