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
Develop Anything, Deploy Anywhere. Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.
3
+
Take your app from Docker Compose to a secure and scalable deployment on your favorite cloud in minutes.
4
4
5
-
- Public releases of the Defang CLI; [click here](https://github.com/DefangLabs/defang/releases/latest/) for the latest version
6
-
- Sample projects in Golang, Python, Node.js, and many more languages and frameworks, that show you how to accomplish various tasks and deploy them to the DOP using a Docker Compose file and the Defang CLI.
7
-
- Samples that show how to deploy an app using the [Defang Pulumi Provider](https://github.com/DefangLabs/pulumi-defang).
5
+
## Defang CLI
6
+
7
+
The Defang Command-Line Interface [(CLI)](https://docs.defang.io/docs/getting-started) is designed for developers who prefer to manage their workflows directly from the terminal. It offers full access to Defang’s capabilities, allowing you to build, test, and deploy applications efficiently to the cloud.
8
8
9
9
## Getting started
10
10
@@ -16,27 +16,40 @@ Develop Anything, Deploy Anywhere. Take your app from Docker Compose to a secure
16
16
17
17
## Support
18
18
19
-
- File any issues [right here on GitHub](https://github.com/DefangLabs/defang/issues)
19
+
- File any issues [here](https://github.com/DefangLabs/defang/issues)
20
20
21
21
## Environment Variables
22
22
23
23
The Defang CLI recognizes the following environment variables:
24
24
25
25
-`COMPOSE_PROJECT_NAME` - The name of the project to use; overrides the name in the `compose.yaml` file
26
26
-`DEFANG_ACCESS_TOKEN` - The access token to use for authentication; if not specified, uses token from `defang login`
27
+
-`DEFANG_BUILD_CONTEXT_LIMIT` - The maximum size of the build context when building container images; defaults to `100MiB`
27
28
-`DEFANG_CD_BUCKET` - The S3 bucket to use for the BYOC CD pipeline; defaults to `defang-cd-bucket-…`
28
29
-`DEFANG_CD_IMAGE` - The image to use for the Continuous Deployment (CD) pipeline; defaults to `public.ecr.aws/defang-io/cd:public-beta`
29
30
-`DEFANG_DEBUG` - set this to `1` or `true` to enable debug logging
30
31
-`DEFANG_DISABLE_ANALYTICS` - If set to `true`, disables sending analytics to Defang; defaults to `false`
32
+
-`DEFANG_EDITOR` - The editor to launch after new project generation; defaults to `code` (VS Code)
31
33
-`DEFANG_FABRIC` - The address of the Defang Fabric to use; defaults to `fabric-prod1.defang.dev`
34
+
-`DEFANG_JSON` - If set to `true`, outputs JSON instead of human-readable output; defaults to `false`
32
35
-`DEFANG_HIDE_HINTS` - If set to `true`, hides hints in the CLI output; defaults to `false`
33
36
-`DEFANG_HIDE_UPDATE` - If set to `true`, hides the update notification; defaults to `false`
34
-
-`DEFANG_PROVIDER` - The name of the cloud provider to use, `auto` (default), `aws`, `digitalocean`, or `defang`
37
+
-`DEFANG_ISSUER` - The OAuth2 issuer to use for authentication; defaults to `https://auth.defang.io`
38
+
-`DEFANG_MODEL_ID` - The model ID of the LLM to use for the generate/debug AI integration (Pro users only)
39
+
-`DEFANG_NO_CACHE` - If set to `true`, disables pull-through caching of container images; defaults to `false`
40
+
-`DEFANG_ORG` - The name of the organization to use; defaults to the user's GitHub name
41
+
-`DEFANG_PREFIX` - The prefix to use for all BYOC resources; defaults to `Defang`
42
+
-`DEFANG_PROVIDER` - The name of the cloud provider to use, `auto` (default), `aws`, `digitalocean`, `gcp`, or `defang`
43
+
-`DEFANG_PULUMI_BACKEND` - The Pulumi backend URL or `"pulumi-cloud"`; defaults to a self-hosted backend
44
+
-`DEFANG_PULUMI_DIR` - Run Pulumi from this folder, instead of spawning a cloud task; requires `--debug` (BYOC only)
45
+
-`DEFANG_PULUMI_VERSION` - Override the version of the Pulumi image to use (`aws` provider only)
35
46
-`DEFANG_TENANT` - The name of the tenant to use.
36
47
-`NO_COLOR` - If set to any value, disables color output; by default, color output is enabled depending on the terminal
48
+
-`PULUMI_ACCESS_TOKEN` - The Pulumi access token to use for authentication to Pulumi Cloud; see `DEFANG_PULUMI_BACKEND`
49
+
-`PULUMI_CONFIG_PASSPHRASE` - Passphrase used to generate a unique key for your stack, and configuration and encrypted state values
37
50
-`TZ` - The timezone to use for log timestamps: an IANA TZ name like `UTC` or `Europe/Amsterdam`; defaults to `Local`
38
51
-`XDG_STATE_HOME` - The directory to use for storing state; defaults to `~/.local/state`
39
52
40
-
---
53
+
Environment variables will be loaded from a `.defangrc` file in the current directory, if it exists. This file follows
54
+
the same format as a `.env` file: `KEY=VALUE` pairs on each line, lines starting with `#` are treated as comments and ignored.
0 commit comments