You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use Devbox Cloud from your Browser, you will need a Github Account.
8
+
To start a Devbox playground from your Browser, you will need a Github Account.
9
9
10
-
### Does my project need to use Devbox to use Devbox Cloud?
10
+
### Does my project need to use Devbox to use Devbox playground?
11
11
12
-
While you can open any Github Repo in a Devbox Cloud Shell, you will need a `devbox.json` to install packages or configure the environment. You can add any packages in your shell by running `devbox add <pkg>`
12
+
While you can open any Github Repo in a Devbox playground, you will need a `devbox.json` to install packages or configure the environment. You can add any packages in your shell by running `devbox add <pkg>`
13
13
14
-
### Can I use my own IDE or editor with Devbox Cloud?
14
+
### Can I use my own IDE or editor with a Devbox playground?
15
15
16
16
Devbox.sh provides a Cloud IDE that you can use to edit your projects in the browser, but you can also open your project in your local VSCode Editor by clicking the `Open in Desktop` button.
17
17
18
18
You can also use your own tools when you connect to the VM via SSH. See our [Getting Started Guide](index.mdx) for more details.
19
19
20
-
### Do I have to pay to use Devbox Cloud during the Open Beta?
20
+
### Do I have to pay to use Devbox.sh?
21
21
22
-
Devbox Cloud is free to use during the Open Beta period, subject to the restrictions listed below. We expect to continue offering a free tier for personal use after the Open Beta period, but we will offer Paid Plans that provide more resources, projects, and persistence.
22
+
Devbox.sh is free to use during the Beta period, subject to the restrictions described below.
23
23
24
-
### What are the resource limits for Devbox Cloud VMs
24
+
### What are the resource limits for Devbox playgrounds
25
25
26
26
***CPU**: 4 Cores
27
27
***RAM**: 8 GB
28
28
***SSD**: 8 GB
29
29
30
-
If you need additional resources for your project, please reach out to us for **[Early Access](https://jetpack-io.typeform.com/devbox-cloud)**
30
+
If you are interested in using Devbox playgrounds or CDE in an enterprise setting, please reach out to us at [[email protected]](mailto://[email protected])
31
+
32
+
### Is there a time limit on Devbox playgrounds?
33
+
34
+
Your playground will be suspended after 4 hours of inactivity, and can be restarted by reopening the playground from your [dashboard](https://devbox.sh/app/projects).
35
+
36
+
playgrounds are also deleted every 12 hours, regardless of activity
31
37
32
38
### I want to request more resources, persistence, or a different OS for my VM
33
39
34
-
Future releases will add more flexibility and features as part of our paid plans. If you'd like to sign up for early access to these plans, please sign up for **[Early Access](https://jetpack-io.typeform.com/devbox-cloud)**
40
+
Please contact us at [email protected] if you are interested in a custom solution for your enterprise.
35
41
36
-
### What OS does Devbox Cloud use?
42
+
### What OS does the Devbox.sh use?
37
43
38
44
Debian Linux, running on a x86-64 platform
39
45
40
46
### How many VM's can I run concurrently?
41
47
42
-
You can have up to 5 concurrent projects per Github Account.
43
-
44
-
### How long will my Devbox Cloud Shell stay alive for?
45
-
46
-
VMs will stay alive for up to 8 hours after going idle. After that point, the VM will be deleted. The next time you visit the same project on the Dashboard, a new VM will be created. Data in the user's home directory will automatically be downloaded to the new machine.
48
+
You can have up to 5 concurrent projects per Github Account. To run more playgrounds, you can visit your [Dashboard](https://devbox.sh/app/projects) to delete older playgrounds
47
49
48
-
### Where will Devbox run my VM?
50
+
### Where does Devbox run my playground?
49
51
50
-
Devbox VMs are run as Fly Machines in local Data Centers. To minimize latency, Devbox Cloud will attempt to create a Fly Machine as close to your current location as possible.
52
+
Devbox VMs are run as Fly Machines in local Data Centers. To minimize latency, Devbox.sh will attempt to create a Fly Machine as close to your current location as possible.
Devbox Cloud is a new way to create and run your Devbox Project in an isolated cloud environment. Devbox Cloud lets you quickly spin up an on-demand Linux Edge VM with your Devbox dependencies and shell using your browser or ssh.
7
-
8
-
:::info
9
-
Devbox Cloud is currently available in Open Beta, and is under active development. Please see the information in our **[FAQ](beta_faq.md)** for more details.
10
-
:::
6
+
Devbox.sh provides a sandboxed playground environment for you to learn how Devbox works, try out example projects or templates, and experiment with using Devbox with your own projects.
<figcaption> Launch a Devbox Cloud instance at <ahref="https://devbox.sh"> devbox.sh</a> </figcaption>
12
+
<figcaption> Launch a Devbox playground at <ahref="https://devbox.sh"> devbox.sh</a> </figcaption>
17
13
</figure>
18
14
19
15
## Quickstart
20
16
21
-
Try Devbox Cloud from your browser by visiting [devbox.sh](https://devbox.sh), or click the button below to launch a quickstart shell:
17
+
You can launch a new playground from your browser by visiting [devbox.sh](https://devbox.sh), or click the button below to launch a quickstart shell:
22
18
23
19
[](https://devbox.sh/new)
24
20
25
-
Use Devbox Cloud to preview Github projects directly in your browser. Devbox Cloud comes with the Devbox CLI, Nix, and several common packages preinstalled, so you can easily run projects that include a `devbox.json`
21
+
Each Devbox playground comes with the Devbox CLI, Nix, and several common packages preinstalled, so you can easily run projects that include a `devbox.json`
If you are trying to open a private repository in Devbox Cloud, we may ask you to install the [**Devbox Cloud app**](https://github.com/apps/devbox-cloud) from the Github Marketplace. This gives Devbox Cloud permissions to clone your repositories to the cloud VMs
28
+
If you are trying to open a private repository on Devbox.sh, we may ask you to install the [**Devbox Cloud app**](https://github.com/apps/devbox-cloud) from the Github Marketplace. This grants permissions to clone your repositories to the cloud VMs
33
29
:::
34
30
35
-
1. Navigate to the Github Repo that you want to preview in Devbox Cloud
36
-
2. Copy the URL, and prepend it with `https://devbox.sh/`. For example, to open the Devbox repo, you would enter [https://devbox.sh/github.com/jetpack-io/devbox](http://devbox.sh/github.com/jetpack-io/devbox). You can also enter the URL on [devbox.sh](https://devbox.sh) and click the `Go` button
31
+
1. Navigate to the Github Repo that you want to preview on Devbox.sh
32
+
2. Copy the URL, and prepend it with `https://devbox.sh/`.
33
+
1. For example, to open the Devbox repo, you would enter [https://devbox.sh/github.com/jetpack-io/devbox](http://devbox.sh/github.com/jetpack-io/devbox).
34
+
1. You can also enter the URL on [devbox.sh](https://devbox.sh) and click the `Go` button
37
35
3. Follow the prompts to sign in with your Github Account.
38
36
4. Your project should now launch in a terminal session in your browser
39
37
1. If the project has a `devbox.json` in the root directory, then Devbox will automatically install your packages and launch you into a devbox shell.
40
38
2. If the project does not have a `devbox.json`, a blank one will be automatically created using `devbox init`. You can add packages to the VM using `devbox add`.
41
39
42
-
### Opening a specific branch of a project
40
+
### Opening a Specific Branch
43
41
44
42
You can open a specific branch of your project using the `branch` query parameter. This is useful when you want to preview a PR or WIP changes for your project.
45
43
46
44
For example: https://devbox.sh/github.com/org/repo?branch=staging would clone the `staging` branch of your project, and open it in your Cloud Shell.
47
45
48
-
### Opening a subfolder of a project
46
+
### Opening a Subfolder
49
47
50
-
You can start your Devbox Cloud Shell in a subfolder of your project, using the `folder` query parameter. This can be useful when working with a monorepo where your project's `devbox.json` lives in a subfolder.
48
+
You can open a specific a subfolder of your project using the `folder` query parameter. This can be useful when working with a monorepo where your project's `devbox.json` lives in a subfolder.
51
49
52
-
For example: https://devbox.sh/github.com/jetpack-io/devbox?folder=examples/development/ruby will start your terminal in the Ruby example in the Devbox repo, load the configuration from the `devbox.json` in that folder, and then start a Devbox Shell.
50
+
For example: https://devbox.sh/github.com/jetpack-io/devbox?folder=examples/development/ruby will start your terminal in the Ruby example in the Devbox repo, load the configuration from the `devbox.json` in that folder, and then start a Devbox shell.
53
51
54
-
### Accessing a port
52
+
### Accessing a Port
55
53
56
54
To access any non-privileged port, simply append `/port/<port_number>` to the project url. For example, the following url opens up port 8080 on the VM:
This URL redirects to `<hostname>-<port>.svc.devbox.sh`, which points to the actual host and port of your project's VM machine.
63
61
64
-
### Opening in desktop VS Code
62
+
### Opening in Desktop VS Code
65
63
66
64
Click on the `Open in Desktop` button on the top right corner, which will open up your local VS Code editor. Follow the prompt, and you should see the VS Code window refreshes and connects to the remote machine via ssh.
67
65
68
-
### SSH via local terminal
69
-
70
-
If you already have a GitHub SSH private key configured in your local machine, you can use it directly to SSH into your remote VM following the steps below:
71
-
72
-
1. Find out the hostname of your VM by appending `/port/8080` to your project's URL:
Note: `<github_username>` is case-sensitive. Make sure it matches with the github profile you sign in with.
91
-
92
-
### Open in Devbox Badge
66
+
### Add Devbox Playground to your Project's README
93
67
94
-
If your project uses Devbox, you can make it easy for developers to test your project in Devbox Cloud by adding the `Open in Devbox` badge to your repo
68
+
If your project uses Devbox, you can make it easy for developers to test your project in a Devbox playground by adding the `Open in Devbox.sh` badge to your repo
95
69
96
70
[](https://devbox.sh/github.com/jetpack-io/devbox)
97
71
@@ -103,5 +77,4 @@ Add the following code to your README.md:
103
77
104
78
## More Info
105
79
106
-
- To learn more about the Open Beta, visit our **[FAQ](beta_faq.md)**.
107
-
- If you're interested in Early Access to future versions of Devbox Cloud, join our **[Early Access List](https://jetpack-io.typeform.com/devbox-cloud)**.
80
+
You can learn more about using Devbox playgrounds in our **[FAQ](beta_faq.md)**.
Copy file name to clipboardExpand all lines: docs/app/docs/devbox_global.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ For more information, see the [Fleek for Devbox Docs](https://getfleek.dev/docs/
74
74
75
75
If you want to make your global packages available in your host shell, you can add them to your shell PATH. Running `devbox global shellenv` will print the command necessary to source the packages.
76
76
77
-
### Add Global Packages to your current Host Shell
77
+
### Add Global Packages to your Current Host Shell
78
78
To temporarily add the global packages to your current shell, run:
Copy file name to clipboardExpand all lines: docs/app/docs/guides/pinning_packages.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Selecting a Specific Package Version
2
+
title: Installing a Specific Package Version
3
3
---
4
4
5
5
This document explains how to use `devbox search` and `devbox add` to install a specific package version in your Devbox project. It also explains how to pin a particular major or minor version for the package in your project.
Copy file name to clipboardExpand all lines: docs/app/docs/guides/plugins.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Using Devbox Plugins
2
+
title: Using Plugins
3
3
---
4
4
5
5
This doc describes how to use Devbox Plugins with your project. **Plugins** provide a default Devbox configuration for a Nix package. Plugins make it easier to get started with packages that require additional setup when installed with Nix, and they offer a familiar interface for configuring packages. They also help keep all of your project's configuration within your project directory, which helps maintain portability and isolation.
Copy file name to clipboardExpand all lines: docs/app/docs/guides/services.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Running Background Services
2
+
title: Running Services
3
3
---
4
4
5
5
When working on an application, you often want some services or dependencies running in the background for testing. Take a web app as an example. While working on your application, you will want to test it against a running development server and database. Previously developers would manage these services via tools like Docker Compose or orchestrating them manually.
Copy file name to clipboardExpand all lines: docs/app/docs/guides/using_flakes.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
1
---
2
-
title: Using Packages from Nix Flakes
2
+
title: Installing Packages from Nix Flakes
3
3
---
4
4
5
5
Devbox supports installing packages with [Nix Flakes](https://nixos.wiki/wiki/Flakes).
6
6
7
-
Devbox currently provides two ways to use Flakes to install packages in your project:
7
+
Devbox currently provides two ways to use Flakes to install packages in your project:
8
8
9
9
1. You can reference a Flake hosted in Github using the `github:` reference
10
10
2. You can reference a local Flake using the `path:` reference
11
11
12
12
## What are Flakes?
13
13
14
-
[Flakes](https://www.jetpack.io/blog/powered-by-flakes/) are a new feature in the Nix language that lets us package software and create development shells in a declarative, fully reproducible way. You can use Nix Flakes to define packages, apps, templates, and dev environments.
14
+
[Flakes](https://www.jetpack.io/blog/powered-by-flakes/) are a new feature in the Nix language that lets us package software and create development shells in a declarative, fully reproducible way. You can use Nix Flakes to define packages, apps, templates, and dev environments.
15
15
16
16
Flakes are defined as a directory with a `flake.nix` and a `flake.lock` file. You import flakes to your project using a flake reference, which describes where to find the Flake, and what version or revision to use
17
17
18
18
## Using a Flake from Github
19
19
20
-
You can add a Flake hosted on Github using the following string in your packages list:
20
+
You can add a Flake hosted on Github using the following string in your packages list:
Copy file name to clipboardExpand all lines: docs/app/docs/quickstart.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Adding Devbox to your Project"
2
+
title: "Create a Dev Environment with Devbox"
3
3
sidebar_position: 3
4
4
---
5
5
@@ -29,7 +29,7 @@ If you want to try Devbox before installing it, you can open a cloud shell on yo
29
29
[](https://devbox.sh/open/templates/tutorial)
30
30
:::
31
31
32
-
## Create a development environment
32
+
## Create a Development Environment
33
33
34
34
We'll create a new development environment with the packages we need. These packages will only be available when using this Devbox shell, ensuring we don’t pollute your machine.
35
35
@@ -68,7 +68,9 @@ We'll create a new development environment with the packages we need. These pack
68
68
}
69
69
```
70
70
71
-
6. Start a new shell that has your packages and tools installed:
71
+
## Launch your Development Environment
72
+
73
+
1. Start a new shell that has your packages and tools installed:
72
74
73
75
```bash
74
76
devbox shell
@@ -80,7 +82,7 @@ We'll create a new development environment with the packages we need. These pack
80
82
81
83
You can tell you're in a Devbox shell (and not your regular terminal) because the shell prompt and directory changed.
82
84
83
-
7. Use your favorite packages.
85
+
2. Use your favorite packages.
84
86
85
87
In this example we installed Python 3.10, so let's use it.
86
88
@@ -97,19 +99,19 @@ We'll create a new development environment with the packages we need. These pack
97
99
-SIMD -AVX (compiled)
98
100
```
99
101
100
-
8. Your regular tools are also available including environment variables and config settings.
102
+
3. Your regular tools are also available including environment variables and config settings.
101
103
102
104
```bash
103
105
git config --get user.name
104
106
```
105
107
106
-
9. To exit the Devbox shell and return to your regular shell:
108
+
4. To exit the Devbox shell and return to your regular shell:
107
109
108
110
```bash
109
111
exit
110
112
```
111
113
112
-
10. To share your project and shell, make sure to check in your `devbox.json` and `devbox.lock` file into source control. These files will ensure that developers get the same packages and environment when they run your project.
114
+
5. To share your project and shell, make sure to check in your `devbox.json` and `devbox.lock` file into source control. These files will ensure that developers get the same packages and environment when they run your project.
0 commit comments