You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

Cloning apps

You can create a copy of your apps’ design, code and Data Tables. You can also allow other people to copy your apps. Each app has a secret URL for this purpose.

Select the ‘Clone app’ option from the more options More options button next to Publish in the Editor’s header.

The clone option in the more options button next to publish.

This will open the Settings:Collaboration tab. Scroll to the Clone section and you will see a clone link for your app. Anyone with this link can copy your app with all its source code into their own Anvil account:

The clone section of the `Settings:Collaboration tab`

Select ‘Share app…’ from the Gear Menu Gear Menu Icon.

The Gear Menu with 'Share App...' highlighted.

You will see a dialog showing a ‘clone link’ for your app. Anyone with this link can copy your app with all its source code into their own Anvil account:

The 'Share your app' dialog with the clone link box highlighted.

If you visit this URL in your web browser, you will be taken to the Anvil Editor, and there will be a confirmation dialog containing the name of the app and its author.

A confirmation dialog asking if you want to clone My App from shaun@anvil.works.

If you click Make Copy, you will get an app named ‘Clone of X’ (where X is the name of the original app).

The 'Your apps' list with the two most recent apps shown: 'Clone of My App' and 'My App'.

The original app is not affected in any way by this operation.

Security Notes

Clone links have the form:

https://anvil.works/build#clone:<app_id>=<secret_token>

You can regenerate the <secret_token> in case you want to revoke access to your app from people who currently have the clone link. The <app_id> is a unique ID for your app that never changes (you can access it from code using anvil.app.id.)

Note that using a clone link will always share the latest version of the app, including the content of all Data Tables. Make sure you regenerate the secret token if you have previously shared a Clone Link and subsequently add sensitive data to your app.

Do you still have questions?

Our Community Forum is full of helpful information and Anvil experts.