From 736a94bdf7eda103d0c666f3d23fdd68906295a6 Mon Sep 17 00:00:00 2001 From: Pedro Enrique Date: Mon, 1 Sep 2025 22:45:56 +0200 Subject: [PATCH] feat: automatically add AGENTUITY_SDK_KEY and AGENTUITY_PROJECT_KEY to .env file when running dev command - When no .env file exists, dev command now creates one with all API response env vars - Automatically includes AGENTUITY_SDK_KEY from user's API key - Automatically includes AGENTUITY_PROJECT_KEY from project data - Improves developer experience for cloned projects --- cmd/dev.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/dev.go b/cmd/dev.go index de9f6d8a..12fa3e36 100644 --- a/cmd/dev.go +++ b/cmd/dev.go @@ -88,6 +88,9 @@ Examples: for k, v := range project.Secrets { fmt.Fprintf(of, "%s=%s\n", k, v) } + // Add the required Agentuity SDK and project keys + fmt.Fprintf(of, "AGENTUITY_SDK_KEY=%s\n", apiKey) + fmt.Fprintf(of, "AGENTUITY_PROJECT_KEY=%s\n", project.ProjectKey) of.Close() tui.ShowSuccess("Synchronized project to .env file: %s", tui.Muted(filename)) }