Skip to content
medusajs avatar

Mcloud Variables

Command-line reference for listing, reading, setting, and deleting environment variables in mcloud Cloud environments.

CCM score
75 of 100
skills.sh installs
1.6K
GitHub stars
237
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers list, get, set, and delete for backend and storefront variable sets, with build and runtime scope filters
  • Includes --reveal and --dotenv options, .env file import via --env-file, and JSON output fields like is_secret and source
  • Enforces masking of secret values unless the user explicitly requests --reveal, and requires --yes for deletes in non-interactive mode
  • Designed for inspecting or changing environment variables, noting that changes need a redeploy or trigger-build to take effect

Install

$ npx -y skills add medusajs/medusa-agent-skills --skill mcloud-variables -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cloud CLI: Variables Commands

Execute mcloud variables commands to inspect and manage environment variables for Cloud environments.

Constraints

  • Never pass --reveal unless the user explicitly asks. Secret values appear in terminal scrollback, log aggregators, and process listings.
  • Variable changes need a deploy to apply. set/delete don't rebuild or redeploy. Run mcloud environments redeploy <env> for a runtime variable, or mcloud environments trigger-build <env> for a build variable (a redeploy reuses the existing image and won't pick up build-variable changes).
  • System variables can't be deleted, and delete requires --yes in non-interactive mode.
  • Looking up or creating a variable by key requires --project and --environment (or the equivalent in active context). Referencing by ID (var_...) works without project/environment context.
  • set and delete require mcloud CLI v0.1.10+.

Commands

variables list

List all environment variables for a Cloud environment.

mcloud variables list \
  --organization <org-id> \
  --project <project-id-or-handle> \
  --environment <environment-handle> \
  --json

Details

Repository
github.com/medusajs/medusa-agent-skills
Categories
DevOps & Cloud, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the mcloud-variables skill do?

It runs mcloud variables commands to list, get, set, and delete environment variables for a Cloud environment. It also covers exporting variables, and it avoids revealing secret values unless the user explicitly asks.

How do I install the mcloud-variables skill?

Run npx -y skills add medusajs/medusa-agent-skills --skill mcloud-variables -y in your project. The skill then lets the agent inspect, read, create, update, delete, and export environment variables.

Do I need to redeploy after changing a variable with mcloud-variables?

Yes, set and delete do not rebuild or redeploy on their own. Run mcloud environments redeploy for a runtime variable, or mcloud environments trigger-build for a build variable.

Where does mcloud-variables sit in the DevOps & Cloud category?

It is listed in the DevOps & Cloud category on Claude Marketplaces, alongside skills such as azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. Its focus is managing Medusa Cloud environment variables through the mcloud CLI.

More from medusajs/medusa-agent-skills

All 15

Similar to Mcloud Variables

More DevOps & Cloud