Last updated on 9th February 2026

Build Commands

What Are Build Commands?

Build commands let you run scripts on DeployHQ's build servers before your files are deployed. Common uses include compiling assets, running tests, and installing dependencies.

Adding Build Commands

Navigate to your project's build settings and add your commands. They run in order from top to bottom.

Common Build Commands

npm install
npm run build
composer install --no-dev
bundle install
rails assets:precompile

Build Environment

DeployHQ's build servers come pre-installed with Node.js, Ruby, PHP, Python, and other common runtimes.

Caching

Dependencies are cached between builds to speed up subsequent deployments.