@@ -31,6 +31,8 @@ var execCmd = &cobra.Command{
3131 CLOUDFLARE_VAULT_SESSION=example-profile
32323333 CLOUDFLARE_API_KEY=s3cr3t
34+ 35+ CF_API_KEY=s3cr3t
3436
3537 Spawn a new shell with credentials populated
3638
@@ -39,6 +41,8 @@ var execCmd = &cobra.Command{
3941 CLOUDFLARE_VAULT_SESSION=example-profile
40424143 CLOUDFLARE_API_KEY=s3cr3t
44+ 45+ CF_API_KEY=s3cr3t
4246` ,
4347 Args : func (cmd * cobra.Command , args []string ) error {
4448 if len (args ) < 1 {
@@ -105,8 +109,10 @@ var execCmd = &cobra.Command{
105109 if profile .SessionDuration == "" {
106110 if profile .AuthType == "api_key" {
107111 env .Set ("CLOUDFLARE_EMAIL" , profile .Email )
112+ env .Set ("CF_EMAIL" , profile .Email )
108113 }
109114 env .Set (fmt .Sprintf ("CLOUDFLARE_%s" , strings .ToUpper (profile .AuthType )), string (keychain .Data ))
115+ env .Set (fmt .Sprintf ("CF_%s" , strings .ToUpper (profile .AuthType )), string (keychain .Data ))
110116 } else {
111117 var api * cloudflare.API
112118 if profile .AuthType == "api_token" {
@@ -160,6 +166,7 @@ var execCmd = &cobra.Command{
160166
161167 if shortLivedToken .Value != "" {
162168 env .Set ("CLOUDFLARE_API_TOKEN" , shortLivedToken .Value )
169+ env .Set ("CF_API_TOKEN" , shortLivedToken .Value )
163170 }
164171
165172 env .Set ("CLOUDFLARE_SESSION_EXPIRY" , strconv .Itoa (int (tokenExpiry .Unix ())))
0 commit comments