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
description: A _project_ refers to a cohesive collection of services, networks, and volumes which are defined and managed using a `compose.yml` file.
3
+
description: A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yml` file.
4
4
sidebar_position: 200
5
5
---
6
6
7
7
# Projects
8
8
9
-
A _project_ refers to a cohesive collection of services, networks, and volumes which are defined and managed using a `compose.yaml` file. These are the components of your cloud application.
9
+
A _project_ refers to a cohesive collection of serviceswhich are defined and managed using a `compose.yaml` file.
10
10
11
11
## Project Names
12
12
13
13
The _project name_ can be defined in the compose file with [the `name` property](https://docs.docker.com/compose/compose-file/04-version-and-name/#name-top-level-element), otherwise the base name of the project directory will be used.
14
14
15
-
The [`--project-name` CLI flag](/docs/cli/defang) can be used to specify the target project name when the `compose.yaml` file is not present.
15
+
The project name may then be used when performing project-wide operations such as listing services, tailing logs, or deprovisioning. For example:
16
+
```
17
+
defang services --project-name <project-name>
18
+
defang tail --project-name <project-name>
19
+
defang compose down --project-name <project-name>
20
+
```
21
+
22
+
By default `defang` will use the project name from the `compose.yaml` file in the working directory. The [`--project-name` CLI flag](/docs/cli/defang) may be used when running `defang` from outside the working directory.
0 commit comments