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
Copy file name to clipboardExpand all lines: docs/concepts/floxhub-environments.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@ title: "FloxHub environments"
3
3
description: "Reusable environments that are centrally managed on FloxHub"
4
4
---
5
5
6
+
A FloxHub environment allows you to centrally manage a Flox environment, tracking changes made to it and allowing the environment to be reused in multiple contexts.
7
+
8
+
## Background
9
+
6
10
When you create an environment for your project, you often do so via the [`flox init`][flox-init] command, which creates a `.flox` directory that you can check into source control.
7
11
8
12
```{ .sh .copy}
@@ -101,7 +105,7 @@ Use 'flox push|pull -r myuser/myenv' to fetch updates or update the environment
101
105
To stop using this environment, type 'exit'
102
106
```
103
107
104
-
The `flox activate` command succeeds, but the message indicates that you need to run either a `flox pull` or `flox push` command (`flox push` in this case since you have local changes):
108
+
The `flox activate` command succeeds, but the message indicates that you need to run either a `flox pull` or `flox push` command (`flox push` in this case since you have local changes) to synchronize the two copies:
105
109
106
110
```text
107
111
Use 'flox push|pull -r myuser/myenv' to fetch updates or update the environment on FloxHub.
@@ -147,6 +151,6 @@ Add the `--upstream` flag to see the packages in the upstream copy of the FloxHu
147
151
148
152
Activating a FloxHub environment is done via the [`flox activate -r`][flox-activate] command.
149
153
This will activate the current state of the local copy of the FloxHub environment, which may not be up to date with the upstream copy.
150
-
To activate the environment as it exists upstream, run `flox pull -r <owner>/<name>` before running `flox activate`.
154
+
To activate the environment as it exists upstream, run `flox pull -r <owner>/<name>` before running `flox activate -r`.
0 commit comments