Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Instant, easy, and predictable development environments

License

NotificationsYou must be signed in to change notification settings

jetify-com/devbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devbox logo.

Instant, easy, and predictable development environments

Join DiscordLicense: Apache 2.0versiontestsBuilt with Devbox

What is it?

Devbox is a command-line tool that lets youeasily create isolated shells for development. You start by defining the list ofpackages required by your development environment, and devbox uses thatdefinition to create an isolated environment just for your application.

In practice, Devbox works similar to a package manager likeyarn – except thepackages it manages are at the operating-system level (the sort of thing youwould normally install withbrew orapt-get). With Devbox, you can installover400,000 package versions from the Nix PackageRegistry

Devbox was originally developed byJetify and isinternally powered bynix.

Demo

The example below creates a development environment withpython 2.7 andgo 1.18, even though those packages are not installed in the underlyingmachine:

screen cast

Installing Devbox

Use the following install script to get the latest version of Devbox:

curl -fsSL https://get.jetify.com/devbox| bash

Read more on theDevbox docs.

Benefits

A consistent shell for everyone on the team

Declare the list of tools needed by your project via adevbox.json file andrundevbox shell. Everyone working on the project gets a shell environmentwith the exact same version of those tools.

Try new tools without polluting your laptop

Development environments created by Devbox are isolated from everything else inyour laptop. Is there a tool you want to try without making a mess? Add it to aDevbox shell, and remove it when you don't want it anymore – all while keepingyour laptop pristine.

Don't sacrifice speed

Devbox can create isolated environments right on your laptop, without anextra-layer of virtualization slowing your file system or every command. Whenyou're ready to ship, it'll turn it into an equivalent container – but notbefore.

Goodbye conflicting versions

Are you working on multiple projects, all of which need different versions ofthe same binary? Instead of attempting to install conflicting versions of thesame binary on your laptop, create an isolated environment for each project, anduse whatever version you want for each.

Take your environment with you

Devbox's dev environments areportable. We make it possible to declare yourenvironment exactly once, and use that single definition in several differentways, including:

  • A local shell created throughdevbox shell
  • A devcontainer you can use with VSCode
  • A Dockerfile so you can build a production image with the exact same tools youused for development.
  • A remote development environment in the cloud that mirrors your localenvironment.

Quickstart: Fast, Deterministic Shell

In this quickstart we'll create a development shell with specific toolsinstalled. These tools will only be available when using this Devbox shell,ensuring we don't pollute your machine.

  1. Open a terminal in a new empty folder.

  2. Initialize Devbox:

    devbox init

    This creates adevbox.json file in the current directory. You should commitit to source control.

  3. Add command-line tools from Nix. For example, to add Python 3.10:

    devbox add python@3.10

    Search for more packages onNixhub.io

  4. Yourdevbox.json file keeps track of the packages you've added, it shouldnow look like this:

    {"packages": ["python@3.10"  ]}
  5. Start a new shell that has these tools installed:

    devbox shell

    You can tell you're in a Devbox shell (and not your regular terminal) becausethe shell prompt changed.

  6. Use your favorite tools.

    In this example we installed Python 3.10, so let's use it.

    python --version
  7. Your regular tools are also available including environment variables andconfig settings.

    git config --get user.name
  8. To exit the Devbox shell and return to your regular shell:

    exit

Read more on theDevbox docs Quickstart.

Additional commands

devbox help - see all commands

See theCLI Reference forthe full list of commands.

Join our Developer Community

Contributing

Devbox is an opensource project, so contributions are always welcome. Please readour contributing guide before submitting pull requests.

Devbox development readme

Related Work

Thanks toNix for providing isolated shells.

Translation

License

This project is proudly open-source under theApache 2.0 License


[8]ページ先頭

©2009-2025 Movatter.jp