Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add token flag to export command

Maidul Islam0d57a26925c4
diff --git a/cli/packages/cmd/export.go b/cli/packages/cmd/export.go
index 089c407b07..c2963f6bdf 100644
--- a/cli/packages/cmd/export.go
+++ b/cli/packages/cmd/export.go
@@ -96,6 +96,7 @@ func init() {
exportCmd.Flags().Bool("expand", true, "Parse shell parameter expansions in your secrets")
exportCmd.Flags().StringP("format", "f", "dotenv", "Set the format of the output file (dotenv, json, csv)")
exportCmd.Flags().Bool("secret-overriding", true, "Prioritizes personal secrets, if any, with the same name over shared secrets")
+ exportCmd.Flags().String("token", "", "Fetch secrets using the Infisical Token")
}
// Format according to the format flag