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.
If you authorize Defang to access your GitHub or GitLab organizations, workspaces will be automatically created for each organization you have access to. Membership to this workspace will be automatically determined based on membership in the corresponding GitHub and GitLab organizations. The first person to login with a given organization will be made the owner. We will be providing a pathway to transfer ownership in the future.
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.