For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to commit?

Update the files of an application that is already on Discloud, without uploading the whole project again.

A commit updates the files of an application that is already hosted on Discloud. Instead of uploading the whole project again, you send only what changed.


🧩 How a commit works

Discloud uses the path of each file inside the .zip to decide where it goes in your project, starting from the project root:

  • If a file already exists at that path, it is replaced.

  • If it doesn't, a new file is created.

  • Files you didn't send stay as they are.

A .zip with src/commands/ping.js updates only that file in the application
Only ping.js is sent; the rest of the project doesn't change.

📦 Preparing the .zip

1

Find the file's path.

Check where the file is in your project, starting from the root. For example: src/commands/ping.js.

2

Recreate the same folders.

Put the file inside the same folders, with the same names and the same extension:

3

Compress the contents, not the project folder.

Select the folders and files that changed and compress them. If you compress the whole project folder (for example, my-bot/), it becomes part of the path and the files end up in the wrong place.

4

Check before sending.

Open the .zip: the first thing inside it should be src/, not my-bot/.

Use .discloudignore to keep unnecessary files out of your commits.


⚠️ Common mistakes

Imagine the original file is at src/commands/ping.js:

You sent
What happens

✅ src/commands/ping.js

The original file is updated.

❌ src/Commands/ping.js

A new Commands/ folder is created next to commands/. The bot keeps using the old file.

❌ my-bot/src/commands/ping.js

A my-bot/ folder is created inside the project, with a copy of the file. The original doesn't change.

❌ ping.js

A ping.js is created at the project root. src/commands/ping.js doesn't change.

If the commit had no effect, look for a duplicated folder like the ones in the table. Usually the file went to the wrong path.


🚀 Sending the commit

1

Go to the #🔌・commands channel on the Discloud Discord Server.

2

Run the command:

3

Send your .zip when the bot asks for it.

From the project root, run:

The CLI builds the .zip for you from the current folder, so run the command from the project root. The short form discloud app c also works.

1

In the VS Code file explorer, select the files and folders that changed.

2

Right-click and choose Discloud > Commit.

3

Choose the application that will receive the commit.

See how to install and sign in to the VS Code extension.

With the GitHub Integration, your application is updated from your repository, with no .zip to build.


✅ Before sending, check

  • The path is the same as in the project, starting from the root.

  • Folder and file names are identical, with the same uppercase and lowercase letters.

  • The extension is right (ping.js, not ping.js.txt).

  • The .zip starts directly with the project folders, with no project folder around them.


❓ Still need help?

See Troubleshooting Solutions or join our Discord Server for support.

Last updated