Skip to content
Backend
Command

/env

Set and wire Convex deployment env vars / secrets for the app.

From plugin
convex-agent-plugins
11729 skills29 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/env

Context preview

What this command does when you run it.

Set and wire Convex deployment env vars / secrets for the app.

Command definition

env.md
description: "Set and wire Convex deployment env vars / secrets for the app."

Manage env vars + secrets

Store secrets as Convex deployment env vars (npx convex env set), read them with process.env in actions, never commit them.

Steps

1. `npx convex env set KEY value` (per deployment). 2. Read via process.env.KEY inside actions (not queries/mutations). 3. Never hardcode or commit secrets; add to .env.local only for local. 4. Confirm it's set with `npx convex env list --names-only`, which lists names without printing the secret values.

Rules

  • Secrets live in Convex env vars, never in code or git.
  • process.env only in actions ('use node' if needed), not queries/mutations.
  • Different deployments need their own values.
  • Check what is set with `npx convex env list --names-only`; never print secret values into the conversation.
Ships withconvex-agent-plugins

Official Convex plugins for AI coding agents, providing comprehensive development tools for building reactive backends with TypeScript. Supported Agents: Cursor, Claude Code (more coming soon)

Get the whole plugin

Other commands on convex-agent-plugins.