Skip to content

Commit cb7ed10

Browse files
authored
Update Devbox.sh Docs, reorganize (#1268)
## Summary Update Devbox.sh docs, Reorganize a bit to simplify TOC ## How was it tested? https://devbox-web-john-lago-jetpack-io.cloud.jetpack.dev/devbox/docs/
1 parent 3361098 commit cb7ed10

File tree

9 files changed

+69
-95
lines changed

9 files changed

+69
-95
lines changed
Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,54 @@
11
---
2-
title: Devbox Cloud Open Beta FAQ
2+
title: Devbox Playground FAQ
33
sidebar_position: 4
44
---
55

6-
### What do I need to use Devbox Cloud?
6+
### What do I need to use a Devbox playground?
77

8-
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.
99

10-
### Does my project need to use Devbox to use Devbox Cloud?
10+
### Does my project need to use Devbox to use Devbox playground?
1111

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>`
1313

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?
1515

1616
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.
1717

1818
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.
1919

20-
### Do I have to pay to use Devbox Cloud during the Open Beta?
20+
### Do I have to pay to use Devbox.sh?
2121

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.
2323

24-
### What are the resource limits for Devbox Cloud VMs
24+
### What are the resource limits for Devbox playgrounds
2525

2626
* **CPU**: 4 Cores
2727
* **RAM**: 8 GB
2828
* **SSD**: 8 GB
2929

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
3137

3238
### I want to request more resources, persistence, or a different OS for my VM
3339

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.
3541

36-
### What OS does Devbox Cloud use?
42+
### What OS does the Devbox.sh use?
3743

3844
Debian Linux, running on a x86-64 platform
3945

4046
### How many VM's can I run concurrently?
4147

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
4749

48-
### Where will Devbox run my VM?
50+
### Where does Devbox run my playground?
4951

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.
5153

5254

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,55 @@
11
---
2-
title: Devbox Cloud
2+
title: Try Devbox in your Browser on Devbox.sh
33
sidebar_position: 1
44
---
55

6-
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.
117

128
<figure className="text--center">
139

1410
[![Devbox Cloud](../../static/img/devbox_sh.png)](https://devbox.sh)
1511

16-
<figcaption> Launch a Devbox Cloud instance at <a href="https://devbox.sh"> devbox.sh</a> </figcaption>
12+
<figcaption> Launch a Devbox playground at <a href="https://devbox.sh"> devbox.sh</a> </figcaption>
1713
</figure>
1814

1915
## Quickstart
2016

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:
2218

2319
[![Open in Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/new)
2420

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`
2622

27-
![Devbox Cloud Browser](../../static/img/devbox_cloud_editor.png)
23+
![Devbox.sh Browser](../../static/img/devbox_cloud_editor.png)
2824

2925
### Open a GitHub Repository in devbox.sh
3026

3127
:::note
32-
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
3329
:::
3430

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
3735
3. Follow the prompts to sign in with your Github Account.
3836
4. Your project should now launch in a terminal session in your browser
3937
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.
4038
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`.
4139

42-
### Opening a specific branch of a project
40+
### Opening a Specific Branch
4341

4442
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.
4543

4644
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.
4745

48-
### Opening a subfolder of a project
46+
### Opening a Subfolder
4947

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.
5149

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.
5351

54-
### Accessing a port
52+
### Accessing a Port
5553

5654
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:
5755

@@ -61,37 +59,13 @@ https://devbox.sh/app/projects/<projectId>/port/8080
6159

6260
This URL redirects to `<hostname>-<port>.svc.devbox.sh`, which points to the actual host and port of your project's VM machine.
6361

64-
### Opening in desktop VS Code
62+
### Opening in Desktop VS Code
6563

6664
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.
6765

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:
73-
74-
```
75-
https://devbox.sh/app/projects/<projectId>/port/8080
76-
```
77-
78-
This will redirect you to `<hostname>-8080.svc.devbox.sh`. Be sure to copy the `<hostname>` for the step below.
79-
80-
1. Copy your keys to the right location:
81-
82-
```
83-
cp ~/.ssh/id_ed25519 ~/.config/devbox/ssh/keys/<hostname>.vm.devbox-vms.internal
84-
```
85-
86-
1. SSH into your machine:
87-
```
88-
ssh -J [email protected] <github_username>@<hostname>.vm.devbox-vms.internal -p 2222
89-
```
90-
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
9367

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
9569

9670
[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/github.com/jetpack-io/devbox)
9771

@@ -103,5 +77,4 @@ Add the following code to your README.md:
10377

10478
## More Info
10579

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)**.

docs/app/docs/devbox_global.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ For more information, see the [Fleek for Devbox Docs](https://getfleek.dev/docs/
7474

7575
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.
7676

77-
### Add Global Packages to your current Host Shell
77+
### Add Global Packages to your Current Host Shell
7878
To temporarily add the global packages to your current shell, run:
7979

8080
```bash

docs/app/docs/guides/pinning_packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Selecting a Specific Package Version
2+
title: Installing a Specific Package Version
33
---
44

55
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.

docs/app/docs/guides/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Using Devbox Plugins
2+
title: Using Plugins
33
---
44

55
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.

docs/app/docs/guides/services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Running Background Services
2+
title: Running Services
33
---
44

55
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.

docs/app/docs/guides/using_flakes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Using Packages from Nix Flakes
2+
title: Installing Packages from Nix Flakes
33
---
44

55
Devbox supports installing packages with [Nix Flakes](https://nixos.wiki/wiki/Flakes).
66

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:
88

99
1. You can reference a Flake hosted in Github using the `github:` reference
1010
2. You can reference a local Flake using the `path:` reference
1111

1212
## What are Flakes?
1313

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.
1515

1616
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
1717

1818
## Using a Flake from Github
1919

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:
2121

2222
```json
2323
"packages": [

docs/app/docs/quickstart.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Adding Devbox to your Project"
2+
title: "Create a Dev Environment with Devbox"
33
sidebar_position: 3
44
---
55

@@ -29,7 +29,7 @@ If you want to try Devbox before installing it, you can open a cloud shell on yo
2929
[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/open/templates/tutorial)
3030
:::
3131

32-
## Create a development environment
32+
## Create a Development Environment
3333

3434
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.
3535

@@ -68,7 +68,9 @@ We'll create a new development environment with the packages we need. These pack
6868
}
6969
```
7070

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:
7274

7375
```bash
7476
devbox shell
@@ -80,7 +82,7 @@ We'll create a new development environment with the packages we need. These pack
8082

8183
You can tell you're in a Devbox shell (and not your regular terminal) because the shell prompt and directory changed.
8284

83-
7. Use your favorite packages.
85+
2. Use your favorite packages.
8486

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

@@ -97,19 +99,19 @@ We'll create a new development environment with the packages we need. These pack
9799
-SIMD -AVX (compiled)
98100
```
99101

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.
101103

102104
```bash
103105
git config --get user.name
104106
```
105107

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:
107109

108110
```bash
109111
exit
110112
```
111113

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.
113115

114116
## Add the Devbox Badge to your Repo
115117

docs/app/sidebars.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ const sidebars = {
3030
}, {
3131
type: 'doc',
3232
id: 'quickstart'
33-
}, {
34-
type: 'doc',
35-
id: 'contributor-quickstart'
3633
}, {
3734
type: 'doc',
3835
id: 'devbox_global'
36+
},{
37+
type: 'doc',
38+
id: 'devbox_cloud/index'
3939
}]
4040
}, {
4141
type: 'category',
@@ -44,7 +44,10 @@ const sidebars = {
4444
items: [{
4545
type: 'doc',
4646
id: 'guides/pinning_packages'
47-
}, {
47+
}, , {
48+
type: 'doc',
49+
id: 'guides/using_flakes'
50+
},{
4851
type: 'doc',
4952
id: 'guides/scripts'
5053
}, {
@@ -58,16 +61,7 @@ const sidebars = {
5861
id: 'guides/services'
5962
}, {
6063
type: 'doc',
61-
id: 'guides/using_flakes'
62-
}]
63-
}, {
64-
type: 'category',
65-
label: 'Devbox Cloud',
66-
link: { type: 'doc', id: 'devbox_cloud/index' },
67-
collapsed: true,
68-
items: [{
69-
type: 'autogenerated',
70-
dirName: 'devbox_cloud'
64+
id: 'guides/plugins'
7165
}]
7266
}, {
7367
type: 'category',
@@ -94,6 +88,9 @@ const sidebars = {
9488
type: 'doc',
9589
id: 'configuration'
9690
}, {
91+
type: 'doc',
92+
id: 'devbox_cloud/beta_faq'
93+
},{
9794
type: 'category',
9895
label: "IDE Reference",
9996
collapsed: true,

0 commit comments

Comments
 (0)