How the single-command install of Bedrock works

Posted on 22 June 2021 at 10:09 by Wolfr_

How did we come up with a single-command install for Bedrock and how does it work? The logic relies on two things: degit and npx.

The degit command allows you to clone a repository without the Bedrock Git repository itself (since you won’t be working on Bedrock, but on your own project). Degit was created by Rich Harris of Svelte fame.

Npx is a node feature since Node 5.2. It’s a package runner that allows you to run a allows you to run a command without having to install it.

The combination of these is what allows you to install Bedrock with a single command, provided you have a recent version of Node installed.

Leave a Reply

Your email address will not be published. Required fields are marked *