Hosting operations2 minutes to read

How can I sync bot files from my editor to Bothosting?

Link a local project to an existing deployment, preview pending uploads, and verify a change before turning on file watching.

Link the project folder to one deployment

The Bothosting CLI can upload files as you save them in your editor. Install the CLI package from the developer page, then run bothosting list and bothosting link from your project folder. Supply the exact deployment ID from the list. You need Node.js 22 or later, Git, the dashboard origin and an account API token. Grant read to list and link, and manage to upload.

Consider a small bot with a new welcome handler. First confirm that the linked ID belongs to the test bot. In the project directory, run these commands with your own deployment ID. The dry run shows what would be sent.

From the project directory
bothosting list
bothosting link DEPLOYMENT_ID
bothosting push --dry-run

Preview the first upload

Check the proposed paths for your handler, entry file and manifest. Put project-specific exclusions in .bothostingignore. The CLI skips common environment files, key files and dependency directories. It cannot infer that an ordinary source file contains a personal customer list. Review what the first dry run would send before enabling uploads.

Run bothosting push, then inspect the handler in the deployment’s Files view. To run the new code, restart a bot, or build and publish a static release as appropriate. Test the changed reply or page through its normal public entry point.

Know what happens on the next save

Start bothosting watch in the linked directory. It performs an initial push and then uploads eligible changes. Stop it with Ctrl+C. A local rename creates a new remote path and leaves the old file in place. If you move your project folder, link the new location before watching again. See the CLI download and setup guide.