dx-org-trial-expiration-check
Skill by forcedotcom
Checks when Salesforce orgs expire or have already expired, using the Salesforce CLI (sf). It covers trial and Developer Edition orgs and scratch orgs, and it only reads expiration without changing any org.
Install dx-org-trial-expiration-check
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/dx-org-trial-expiration-check ~/.claude/skills/dx-org-trial-expiration-checkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install dx-org-trial-expiration-check in Claude Code
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sf-skills/skills/dx-org-trial-expiration-check ~/.gemini/antigravity-cli/skills/dx-org-trial-expiration-checkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install dx-org-trial-expiration-check in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill reads when Salesforce orgs expire and how many days remain. It can check one org, the default org, or all authenticated orgs. For trial and Developer Edition orgs it reads the TrialExpirationDate field with a SOQL query through sf data query. For scratch orgs it uses the expirationDate reported by sf org list. Results are sorted with expired and soonest-expiring orgs first, with a one-line summary.
The skill can also filter orgs expiring within N days and output JSON or CSV for cron jobs or alerting. It can print backup commands for an at-risk org and renewal guidance for trial or Developer Edition orgs. It does not create, delete, refresh, or switch orgs. It is for Salesforce users who need to track trial or org expiration.
Written from the project's SKILL.md and checked against it.
What it can do
- Expiration checkReports days remaining or expired status for one org, the default org, or all authenticated orgs.
- Prioritized outputGroups results into expired, expiring soon, active, and no trial expiration, with a one-line summary.
- Expiring-within filterShows only orgs expiring within N days using the --within option.
- JSON and CSV outputEmits machine-readable org records for dashboards, spreadsheets, or scheduled jobs.
- Cron watchdogExits with code 3 and prints an ALERT line when any org expires within N days (default 7).
- Backup commandsPrints ready-to-run metadata and data export commands for expiring or expired orgs with --preserve.
- Renewal guidancePrints steps to extend trial or Developer Edition orgs and includes Org IDs of at-risk orgs with --renew.
- Authentication hintsPrints the sf org login web command for orgs that cannot be queried.
What you need
- Salesforce CLI (sf) version 2.0 or later
- jq version 1.6 or later
- At least one authenticated Salesforce org
Try asking
- When does my trial org expire?
- Which of my orgs are expiring within 30 days?
- Give me JSON of orgs expiring soon for a cron alert.
Good to know
- Read-only: it never creates, deletes, refreshes, or switches orgs.
- Not for sandbox refresh timing or non-Salesforce trials.
- Queries orgs one at a time because the sf CLI can be slow under contention.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/dx-org-trial-expiration-check/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadBash(bash)Bash(sf data query)Bash(sf org list)Bash(sf config get)Bash(jq)Bash(date)
Alternatives to dx-org-trial-expiration-check
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
dx-org-trial-expiration-check: common questions
Does this skill change my Salesforce orgs?
No. It only reads expiration dates and prints guidance. It never creates, deletes, refreshes, or changes the default org.
How does it find the expiration date?
For trial and Developer Edition orgs it uses Organization.TrialExpirationDate through SOQL. For scratch orgs it uses the expirationDate from sf org list.
Can it alert me before a trial org expires?
Yes. The --fail-if-expiring option exits with code 3 when any org expires within N days, which a cron job can use to send an alert.
How do I install dx-org-trial-expiration-check?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dx-org-trial-expiration-check free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is dx-org-trial-expiration-check safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dx-org-trial-expiration-check?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
