A Salesforce Admin's First GitHub Action: Keeping My Agentforce + Data Cloud Dev Org Alive — In My Sleep

Your Agentforce + Data Cloud dev org expires after 45 days of inactivity. Mine's been alive for six months — and I never have to think about it.
GitHub? The command line? Yeah, that used to be where I stopped reading too. But this is honestly one of the easiest ways to dip your toes into Saleforce CLI and GitHub world, and it solves a real problem at the same time.
Bob Buzzard wrote a fantastic blog post walking through how to use a GitHub Action to automatically log into your Agentforce + Data Cloud Developer Edition org on a schedule. I followed his steps in July 2025, and my dev org has been humming along ever since — no required manual logins, no worrying about the 45-day clock.
Here's the part I want to stress: you only need two things to get started.
A free GitHub account
Salesforce CLI installed on your local computer
That's it. No VS Code. No deploying code. No terminal wizardry. From there Bob walks you through the setup with clear steps.
One heads-up if you're following Bob's post: he uses -o as the alias flag on the sf org login web command. That was valid in older Salesforce CLI versions, but the current correct flag is -a:
sf org login web -a AFDevOrg
Small thing, but it'll save you a few minutes of frustrating troubleshooting.
A couple of tips from my experience setting this up:
GitHub has two "Actions" areas — don't get tripped up. There's an Actions tab at the top of your repo (where your workflows run) and an Actions section under Settings in the left sidebar. You'll need both at different steps. Just know they're different.
Save your environment name in a text file. You'll reference it more than once, and it's easier than hunting for it later.
If Salesforce forces a password reset, your action will break. You'll need to re-authenticate with the CLI and update the secret in GitHub with a fresh Sfdx Auth URL. Easy to do since you will have done once already.
Bob's original post:
https://bobbuzzard.blogspot.com/2025/03/keep-your-agentforce-dev-org-alive-and.html
This was my first real experience with GitHub Actions, and honestly? It made the whole ecosystem feel a lot less foreign. If you've been curious about Salesforce CLI and automation now you have a good reason (use case) to start!