# Build (Software)

> The step that turns source code into files that can run or be shipped.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** Software Build, Build Step, Build Process, npm run build

## Think of it like

Think of it like baking. You start with flour and eggs, and you end with a cake you can serve.

## Definition

A build turns source code into something that can run or be shipped. It may compile the code, join many files into a few, shrink them and copy in images. The result lands in a folder such as dist or build. A build should give the same result every time from the same code. Build tools and scripts run it with one command, like npm run build.

## Example

Lucy runs npm run build on her web app. Two hundred source files become three small files in a dist folder, ready to put on a server.

## Example code

```console
$ npm run build
> vite build
✓ built in 2.41s
```

One command turns the source into files ready to ship.

## Why it matters

Users never run your source files. They run what the build made, so the build is what ships.

## Common mistake

Building on your own laptop and copying the files up by hand. Let a clean machine build it the same way each time.

## Three principles

- **Source in, files out.** Ready to run or ship.
- **Same every time.** Same code, same result.
- **One command.** Anyone can run it.

## Related terms

- [Build Artifact](https://learn.benibix.com/term/development/build-artifact)
- [Compiler](https://learn.benibix.com/term/development/compiler)
- [JavaScript Bundler](https://learn.benibix.com/term/development/bundler)
- [Continuous Integration (CI)](https://learn.benibix.com/term/development/continuous-integration)
- [Build Tool](https://learn.benibix.com/term/development/build-tool)

---

Source: https://learn.benibix.com/term/development/build
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
