---
title: Upload source code
project: SuperAdmin
version: 9.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/superadmin/9-0/guides/upload-source-code/
updated: 2026-11-19T08:00:40.593Z
---

# Upload source code

> Put the code of an app on the server from a ZIP file, with an optional backup and NPM install.

You give SuperAdmin the code of an app as a ZIP file. SuperAdmin unpacks it into the app folder and starts the app again.

The ZIP file must hold the files of the app at its top level, for example:

```text
controllers/default.js
config
package.json
```

A ZIP file whose top level is a single folder, such as `app/controllers/...`, does not work, because SuperAdmin unpacks it as it is.

## Upload a ZIP file

1. In the list, open the menu (three dots) of the app and select **Upload source-code**. After you add an app, this dialog opens by itself.
2. In **Source-code**, choose **Upload ZIP file**.
3. Choose the options you need (see [The options](#the-options)).
4. Select **SUBMIT**, then **Continue**.
5. Choose the ZIP file on your computer.

![The Upload source-code dialog](/files/JapVu333360f.webp)

When SuperAdmin shows **Source-code has been applied successfully**, the app runs with the new code.

## The options

- **Performs NPM install**: runs `npm install` in the app folder when the ZIP has a `package.json`.
- **Creates a backup**: saves the current files of the app first, so that you can restore them. See [Backups](../backups/).
- **Removes all files in the root of application**: deletes the old files before it unpacks the new ones. It is selected by default.

The dialog says that a ZIP file can have up to 10 MB.

## Restore a backup

When you uploaded with **Creates a backup**, **Restore a backup** in **Source-code** puts those files back. See [Backups](../backups/).

## Change a single file

To change one file without a new ZIP, use the [File browser](../file-browser/).
