defang
v1.0.1
Published
CLI for the Defang Opinionated Platform
Downloads
265
Readme
Defang
Defang is a radically simpler way for developers to develop, deploy, and debug cloud applications.
- Public releases of the Defang CLI; click here for the latest version
- 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.
- Samples that show how to deploy an app using the Defang Pulumi Provider.
Getting started
- Read our Getting Started page
- Follow the installation instructions from the Installing page
- Take a look at our Samples folder for example projects in various programming languages.
- Try the AI integration by running
defang generate
- Start your new service with
defang compose up
Support
- File any issues right here on GitHub
Environment Variables
The Defang CLI recognizes the following environment variables:
COMPOSE_PROJECT_NAME
- The name of the project to use; overrides the name in thecompose.yaml
fileDEFANG_ACCESS_TOKEN
- The access token to use for authentication; if not specified, uses token fromdefang login
DEFANG_CD_BUCKET
- The S3 bucket to use for the BYOC CD pipeline; defaults todefang-cd-bucket-…
DEFANG_CD_IMAGE
- The image to use for the Continuous Deployment (CD) pipeline; defaults topublic.ecr.aws/defang-io/cd:public-beta
DEFANG_DEBUG
- set this to1
ortrue
to enable debug loggingDEFANG_DISABLE_ANALYTICS
- If set totrue
, disables sending analytics to Defang; defaults tofalse
DEFANG_FABRIC
- The address of the Defang Fabric to use; defaults tofabric-prod1.defang.dev
DEFANG_HIDE_HINTS
- If set totrue
, hides hints in the CLI output; defaults tofalse
DEFANG_HIDE_UPDATE
- If set totrue
, hides the update notification; defaults tofalse
DEFANG_PROVIDER
- The name of the cloud provider to use,auto
(default),aws
,digitalocean
, ordefang
NO_COLOR
- If set to any value, disables color output; by default, color output is enabled depending on the terminalTZ
- The timezone to use for log timestamps: an IANA TZ name likeUTC
orEurope/Amsterdam
; defaults toLocal
XDG_STATE_HOME
- The directory to use for storing state; defaults to~/.local/state