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/cli.md
+34-13Lines changed: 34 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,42 +10,44 @@ Most commands are run against one or more services. If the service is omitted, i
10
10
11
11
Run `fig [COMMAND] --help` for full usage.
12
12
13
-
## build
13
+
## Commands
14
+
15
+
### build
14
16
15
17
Build or rebuild services.
16
18
17
19
Services are built once and then tagged as `project_service`, e.g. `figtest_db`. If you change a service's `Dockerfile` or the contents of its build directory, you can run `fig build` to rebuild it.
18
20
19
-
## help
21
+
###help
20
22
21
23
Get help on a command.
22
24
23
-
## kill
25
+
###kill
24
26
25
27
Force stop service containers.
26
28
27
-
## logs
29
+
###logs
28
30
29
31
View output from services.
30
32
31
-
## port
33
+
###port
32
34
33
35
Print the public port for a port binding
34
36
35
-
## ps
37
+
###ps
36
38
37
39
List containers.
38
40
39
-
## pull
41
+
###pull
40
42
41
43
Pulls service images.
42
44
43
-
## rm
45
+
###rm
44
46
45
47
Remove stopped service containers.
46
48
47
49
48
-
## run
50
+
###run
49
51
50
52
Run a one-off command on a service.
51
53
@@ -65,7 +67,7 @@ If you do not want linked containers to be started when running the one-off comm
65
67
66
68
$ fig run --no-deps web python manage.py shell
67
69
68
-
## scale
70
+
###scale
69
71
70
72
Set number of containers to run for a service.
71
73
@@ -74,15 +76,15 @@ For example:
74
76
75
77
$ fig scale web=2 worker=3
76
78
77
-
## start
79
+
###start
78
80
79
81
Start existing containers for a service.
80
82
81
-
## stop
83
+
###stop
82
84
83
85
Stop running containers without removing them. They can be started again with `fig start`.
84
86
85
-
## up
87
+
###up
86
88
87
89
Build, (re)create, start and attach to containers for a service.
88
90
@@ -93,3 +95,22 @@ By default, `fig up` will aggregate the output of each container, and when it ex
93
95
By default if there are existing containers for a service, `fig up` will stop and recreate them (preserving mounted volumes with [volumes-from]), so that changes in `fig.yml` are picked up. If you do no want containers to be stopped and recreated, use `fig up --no-recreate`. This will still start any stopped containers, if needed.
0 commit comments