Skip to main content

Authentication

To do pretty much anything with Defang, you'll need to authenticate with the system. You can do this by running the following command in the CLI:

defang login

This will prompt you to open a browser and log in to your Defang account. You can log in using GitHub or GitLab. We will offer other authentication providers in the future. Once you've logged in, you can close the browser and return to the terminal. You will see a message that you've successfully logged in.

tip

Keep in mind that your Defang account is separate from your cloud provider account. You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.