Hello @ernestognw ,
You are right. However, with great power comes great responsibility

In any case, I have taken this from the wrong point of view, @ernestognw . Allow me to take a step back.
Context
I think that when it comes to AutoTasks, the general usage will be as part of the CI/CD workflow. Here you have the example I made with GitHub Actions:
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to OpenZeppelin Defender Autotasks on merge
"on":
push:
branches:
- master
env:
# Sets environment variable
API_KEY: ${{ secrets.DEFENDER_API_KEY }}
API_SECRET: ${{ secrets.DEFENDER_API_SECRET }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
CI: false
steps:
- uses: actions/checkout@v2
# Preparing the JSON files that will be needed in the script
- run: mkdir -p defender/autotasks/SweepVaultFees/contracts
- run: cp -r app/src/contracts/TutorialToken.json defender/autotasks/SweepVaultFees/contracts/
- run: cp -r app/src/contracts/NBU.json defender/autotasks/SweepVaultFees/contracts/
- run: cp -r app/src/contracts/GNBU.json defender/autotasks/SweepVaultFees/contracts/
# Deploying the JSON files and the script in OpenZeppelin Defender Autotask
- run: npm ci && npm run update_defender_autotask
You can see in the next image that I have created a defender
folder

In defender
folder the DevOps team would update the scripts either in a separated project or as part of the current one:

The Cloud Key ID will save the fact of having two variables going around but in general terms it is a reduction that for this particular case will not be of big help. However, what it could be useful is to be able to add a single parameter when calling the command so instead of:
npm run update_defender_autotask
You could do:
npm run update_defender_autotask --cloud-key-id [cloud id]
This way you don't force the client to have an environment variable like I had to do in the earlier GitHub Actions script for using the update command.
By the way, I added the update_defender_autotask
command to my package.json
scripts as you suggested:
"update_defender_autotask": "npx defender-autotask update-code d225f23b-******-******-******-******688 defender/autotasks/SweepVaultFees/"
Proposal
If [cloud key] or [API key & secrets] are given in the command, no need for looking in the .env file. This way I can give the names I want to the cloud key (in case of being implemented) or to the API keys and secrets like for example the names I have given them in my GitHub Action secrets:
# Sets environment variable
API_KEY: 👉 ${{ secrets.DEFENDER_API_KEY }}
API_SECRET: 👉 ${{ secrets.DEFENDER_API_SECRET }}
Hope I was a bit of help
Thanks for the help, @ernestognw . Wish you a good weekend 
Best regards,
Pedro Reyes.