Skip to content

Commit c826bec

Browse files
authored
Devbox Global -- Documentation (#682)
## Summary Adds a guide + CLI instructions for Devbox Global Reconfigures the sidebar to make it easier to add ## How was it tested? Localhost --------- Signed-off-by: John Lago <[email protected]>
1 parent 315f964 commit c826bec

20 files changed

+318
-171
lines changed

docs/app/docs/cli_reference/devbox.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# devbox CLI
1+
# devbox
22

33
Instant, easy, predictable shells and containers
44

@@ -18,6 +18,7 @@ devbox [flags]
1818
* [devbox add](./devbox_add.md) - Add a new package to your devbox
1919
* [devbox cloud](./devbox_cloud.md) - [Preview] Create and manage a remote dev environment with Devbox Cloud
2020
* [devbox generate](devbox_generate.md) - Generate supporting files for your project
21+
* [devbox global](./devbox_global.md) - Manages global Devbox packages
2122
* [devbox info](devbox_info.md) - Display package and plugin info
2223
* [devbox init](./devbox_init.md) - Initialize a directory as a devbox project
2324
* [devbox rm](./devbox_rm.md) - Remove a package from your devbox

docs/app/docs/cli_reference/devbox_cloud.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ devbox cloud [subcommand] [flags]
1717
-q, --quiet Quiet mode: Suppresses logs.
1818
```
1919

20-
## SEE ALSO
20+
## Subcommands
2121

22-
* [devbox](devbox.md) - Instant, easy, predictable development environments
2322
* [devbox cloud forward](devbox_cloud_forward.md) - [Preview] Port forwards a local port to a remote devbox cloud port
2423
* [devbox cloud shell](devbox_cloud_shell.md) - [Preview] Shell into a cloud environment that matches your local devbox environment
24+
25+
## SEE ALSO
26+
27+
* [devbox](devbox.md) - Instant, easy, predictable development environments
28+

docs/app/docs/cli_reference/devbox_generate.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ devbox generate <devcontainer|dockerfile> [flags]
1414
-q, --quiet Quiet mode: Suppresses logs.
1515
```
1616

17-
## SEE ALSO
17+
## Subcommands
1818

19-
* [devbox](devbox.md) - Instant, easy, predictable development environments
2019
* [devbox generate devcontainer](devbox_generate_devcontainer.md) - Generate Dockerfile and devcontainer.json files under .devcontainer/ directory
2120
* [devbox generate dockerfile](devbox_generate_dockerfile.md) - Generate a Dockerfile that replicates devbox shell
2221
* [devbox generate direnv](devbox_generate_direnv.md) - Generate a .envrc file to use with direnv
2322

23+
## SEE ALSO
24+
25+
* [devbox](devbox.md) - Instant, easy, predictable development environments
26+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# devbox global
2+
3+
Top level command for managing global packages.
4+
5+
You can use `devbox global` to install packages that you want to use across all your local devbox projects. For example -- if you usually use `ripgrep` for searching in all your projects, you can use `devbox add ripgrep` to make it available whenever you start a `devbox shell` without adding it to each project's `devbox.json.`
6+
7+
You can also use Devbox as a global package manager by adding the following line to your shellrc:
8+
9+
`exec "$(devbox global shellenv)"`
10+
11+
For more details, see [Use Devbox as your Primary Package Manager](../devbox_global.md).
12+
13+
```bash
14+
devbox global <subcommand> [flags]
15+
```
16+
17+
## Options
18+
19+
```bash
20+
-c, --config string path to directory containing a devbox.json config file
21+
-h, --help help for generate
22+
-q, --quiet Quiet mode: Suppresses logs.
23+
```
24+
25+
## Subcommands
26+
* [devbox global add](devbox_global_add.md) - Add a global package to your devbox
27+
* [devbox global list](devbox_global_list.md) - List global packages
28+
* [devbox global pull](devbox_global_pull.md) - Pulls a global config from a file or URL.
29+
* [devbox global rm](devbox_global_rm.md) - Remove a global package
30+
* [devbox global shellenv](devbox_global_shellenv.md) - Print shell commands that add global Devbox packages to your PATH
31+
32+
## SEE ALSO
33+
34+
* [devbox](devbox.md) - Instant, easy, predictable development environments
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# devbox global add
2+
3+
Add a new global package.
4+
5+
```bash
6+
devbox global add <pkg>... [flags]
7+
```
8+
9+
## Options
10+
11+
```bash
12+
-h, --help help for add
13+
-q, --quiet suppresses logs
14+
```
15+
16+
## SEE ALSO
17+
18+
* [devbox global](devbox_global.md) - Manages global Devbox packages
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# devbox global list
2+
3+
Lists all the packages you have installed globally
4+
5+
```bash
6+
devbox global list <pkg>... [flags]
7+
```
8+
## Aliases
9+
10+
list, ls
11+
12+
## Options
13+
14+
```bash
15+
-h, --help help for list
16+
-q, --quiet suppresses logs
17+
```
18+
19+
## SEE ALSO
20+
21+
* [devbox global](devbox_global.md) - Manages global Devbox packages
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# devbox global pull
2+
3+
Pulls a global config from a file or URL. URLs must be prefixed with 'http://' or 'https://'.
4+
5+
```bash
6+
devbox global pull <file> | <url> [flags]
7+
```
8+
9+
## Options
10+
11+
```bash
12+
-h, --help help for pull
13+
-q, --quiet suppresses logs
14+
```
15+
16+
## SEE ALSO
17+
18+
* [devbox global](devbox_global.md) - Manages global Devbox packages
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# devbox global rm
2+
3+
Removes a package from your global config
4+
5+
```bash
6+
devbox global rm <pkg> [flags]
7+
```
8+
9+
## Options
10+
11+
```bash
12+
-h, --help help for rm
13+
-q, --quiet suppresses logs
14+
```
15+
16+
## SEE ALSO
17+
18+
* [devbox global](devbox_global.md) - Manages global Devbox packages
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# devbox global shellenv
2+
3+
Print shell commands that add global Devbox packages to your PATH
4+
5+
- To add the global packages to the PATH of your current shell, run the following command:
6+
7+
```bash
8+
. <(devbox global shellenv)
9+
```
10+
11+
- To add the global packages to the PATH of all new shells, add the following line to your shell's config file (e.g. `~/.bashrc` or `~/.zshrc`):
12+
13+
```bash
14+
eval "$(devbox global shellenv)"
15+
```
16+
17+
## Options
18+
19+
```bash
20+
-h, --help help for shellenv
21+
-q, --quiet suppresses logs
22+
```
23+
24+
## SEE ALSO
25+
26+
* [devbox global](devbox_global.md) - Manages global Devbox packages

docs/app/docs/cli_reference/devbox_services.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ devbox services <ls|restart|start|stop> [flags]
1414
-q, --quiet Quiet mode: Suppresses logs.
1515
```
1616

17-
## SEE ALSO
17+
## Subcommands
1818

19-
* [devbox](devbox.md) - Instant, easy, predictable development environments
2019
* [devbox services ls](devbox_services_ls.md) - List available services
2120
* [devbox services restart](devbox_services_restart.md) - Restarts service. If no service is specified, restarts all services
2221
* [devbox services start](devbox_services_start.md) - Starts service. If no service is specified, starts all services
2322
* [devbox services stop](devbox_services_stop.md) - Stops service. If no service is specified, stops all services
2423

24+
## SEE ALSO
25+
26+
* [devbox](devbox.md) - Instant, easy, predictable development environments

0 commit comments

Comments
 (0)