---
title: "Edit your app's code by hand in the Codebase tab"
description: "Open your Hercules app's source code in the Codebase tab, edit a file by hand and save it. Hand precise changes to a developer, and undo from Versions."
---

# Edit your app's code by hand in the Codebase tab

The Code Editor lets you or a developer open your Hercules app's code in the Codebase tab, change a file by hand and save it. The Code Editor needs a paid plan.

For most changes, ask Hercules or use Visual Edit, because Hercules understands how the app fits together and makes coordinated changes across multiple files. The Code Editor is for the exact change a developer wants to make themselves, such as one formatting function.

- **Source files in the browser.** Open and edit your app's code from the Codebase tab.
- **Undo from Versions.** Restore the last working version if an edit breaks the app.
- **Code download.** Export the codebase as an archive from main or any open branch.

## What can you do with the Code Editor?

### Open the code in the Codebase tab

The Codebase tab in your app's sidebar lists the app's source files and opens one for editing. Every saved edit becomes a new version. [Code Editor](https://hercules.app/docs/apps/code-editor)

### Save when you're ready

The Code Editor doesn't save on its own. Click Save before you leave the tab, or you'll lose your edits. [Code Editor](https://hercules.app/docs/apps/code-editor)

### Undo an edit that breaks the app

Restore an earlier version from the Versions tab or the switcher next to Publish. Reverting restores code and database structure, and your database records stay as they are. [Version Control](https://hercules.app/docs/apps/version-control)

### Download the code for a developer

More, then Export downloads the codebase as a .tar.gz archive, from main or any open branch. The archive holds the React frontend, the backend code and the configuration files. [Export data](https://hercules.app/docs/apps/export-data)

### Keep keys out of the code

Store API keys in Secrets, and the code reads them as `process.env` values. Hercules sees only each secret's name, which is enough to write the code that reads it. [Secrets](https://hercules.app/docs/apps/secrets)

## How do you hand a change to a developer?

### 1. Ask Hercules first

> Change the quote PDF so each line item shows the part number before the description.

Hercules edits the files involved and saves a new version. Bring in a developer only for a detail that still needs an exact hand edit.

### 2. Invite the developer to make the hand edit

Invite the developer as a teammate with the Member role, which can edit apps, and they make the change in the Codebase tab. When they click Save, Hercules records the edit as a new version. [Teammates](https://hercules.app/docs/platform/teammates)

### 3. Check it, or roll it back

Check the change in the preview. If something broke, restore the previous version, then ask Hercules to fix the issue.

## What could this look like for a business?

In this hypothetical example, an outside developer fixes the column order of a fencing manufacturer's weekly order file by hand in the Codebase tab. The manufacturer runs quoting and production scheduling on an app their operations manager built on Hercules. A large customer's purchasing system needs that file in an exact column order.

Hercules builds the export, and the developer adjusts the formatting, saves and checks the file in the preview. The order file then loads into the customer's system without anyone reformatting it each week.

## What should you know before you edit code?

- Downloading the code needs a paid plan. [Export data](https://hercules.app/docs/apps/export-data)
- Hercules support can't help with problems caused by manual edits.
- A developer can't connect their own coding software, so edits happen in the Codebase tab.
- A teammate's role applies to every app in your organization, so a developer invited as a Member can edit all of them.
- Hercules support doesn't cover running the app on an outside host.
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [Visual Edit](/features/visual-edit) to change text, colors and spacing by clicking when you'd rather not edit code.
- Use [Version Control](/features/version-control) to restore an earlier version when an edit goes wrong.
- Use [Branches](/features/branches) to hold a change on a copy of the app when you want to merge it only once it works.
- Use [Secrets](/features/secrets) to keep API keys out of the code when a feature calls another service.

## How do you get started?

Open your app and click Codebase in the sidebar. Start building.

## Frequently asked questions

### Can a developer look at the code before I invite them?

A developer can review your app's code before joining your team. Download the archive from More, then Export, and send it to them.

### Can I download a branch's code without merging it?

Hercules lets you download an open branch's code without merging it. Pick the branch in the selector next to Download code to get its latest version. Downloading doesn't change your app, and merged or closed branches can't be downloaded. [Export data](https://hercules.app/docs/apps/export-data)

### Can I export the database too?

Yes. On a paid plan, Export database downloads a ZIP snapshot of your app's tables, and it includes files your users uploaded unless you clear that option. [Export data](https://hercules.app/docs/apps/export-data)

### Who owns the code?

You own what you build on Hercules.

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Can a developer look at the code before I invite them?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A developer can review your app's code before joining your team. Download the archive from More, then Export, and send it to them."
      }
    },
    {
      "@type": "Question",
      "name": "Can I download a branch's code without merging it?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Hercules lets you download an open branch's code without merging it. Pick the branch in the selector next to Download code to get its latest version. Downloading doesn't change your app, and merged or closed branches can't be downloaded. Export data"
      }
    },
    {
      "@type": "Question",
      "name": "Can I export the database too?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. On a paid plan, Export database downloads a ZIP snapshot of your app's tables, and it includes files your users uploaded unless you clear that option. Export data"
      }
    },
    {
      "@type": "Question",
      "name": "Who owns the code?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You own what you build on Hercules."
      }
    }
  ]
}
```
