Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Merge branch 'main' into docs/cli-sm-command
Victor Hugo dos Santos95a545c56592
diff --cc docs/cli/project-config.mdxindex 87e636ff42,42b0cab860..08ecbdebe5--- a/docs/cli/project-config.mdx+++ b/docs/cli/project-config.mdx@@@ -3,12 -3,16 +3,16 @@@ title: "Project configurationdescription: "Configure how the Infisical CLI interacts with your directory."---- `.infisical.json` links a directory to an [Infisical project](/documentation/platform/project). When you run a command such as [`infisical sm run`](/cli/reference#sm-run) or [`infisical sm secrets`](/cli/reference#sm-secrets) in that directory, the CLI reads the project from the file, so you don't have to pass [`--projectId`](/cli/reference#sm-run--flag-projectid).+ <Warning>+ `.infisical.yaml` replaces `.infisical.json`, which is deprecated. The CLI still reads `.infisical.json`, so directories that have one keep working without any changes. To move to the new format, [convert it to `.infisical.yaml`](/cli/project-config-migration).+ </Warning>+-`.infisical.yaml` links a directory to an [Infisical project](/documentation/platform/project). When you run a command such as [`infisical run`](/cli/reference#run) or [`infisical secrets`](/cli/reference#secrets) in that directory, the CLI reads the project from the file, so you don't have to pass [`--projectId`](/cli/reference#run--flag-projectid).++`.infisical.yaml` links a directory to an [Infisical project](/documentation/platform/project). When you run a command such as [`infisical sm run`](/cli/reference#sm-run) or [`infisical sm secrets`](/cli/reference#sm-secrets) in that directory, the CLI reads the project from the file, so you don't have to pass [`--projectId`](/cli/reference#sm-run--flag-projectid).-The file can also [choose an environment for you](#set-the-environment) and [pin the Infisical instance](#set-the-infisical-instance) the project lives on.+The file can also [choose an environment](#set-the-environment) and [a folder](#set-the-folder) for you, and [pin the Infisical instance](#set-the-infisical-instance) the project lives on.<Info>- The `.infisical.json` file doesn't include any sensitive values and is safe to commit to version control.+ The `.infisical.yaml` file doesn't include any sensitive values and is safe to commit to version control.</Info>## Create the file@@@ -19,75 -23,53 +23,73 @@@ In the root of your codebase, runinfisical init```- Select the project when prompted. The CLI writes `.infisical.json` to the current directory:+ Select the project when prompted. The CLI writes `.infisical.yaml` to the current directory:- ```json .infisical.json- {- "workspaceId": "<project-id>",- "defaultEnvironment": "",- "gitBranchToEnvironmentMapping": null- }+ ```yaml .infisical.yaml+ general: {}+ secrets-management:+ project-id: <project-id>+ default-environment: ""+ mappings:+ git-branch-to-environment: {}```- `workspaceId` is the project's ID. The other fields are empty until you set them, as described in the sections that follow. If you run [`infisical init`](/cli/reference#init) again, the CLI replaces the file with a new one that holds only the project ID, so you lose any settings you added.+ `project-id` is the project's ID. The other settings are empty until you set them, as described in the sections that follow. If you run [`infisical init`](/cli/reference#init) again, the CLI replaces the file with a new one that holds only the project ID, so you lose any settings you added.<Note>- If you authenticate as a [machine identity](/documentation/platform/identities/machine-identities), `infisical sm run`, [`infisical sm export`](/cli/reference#sm-export), and `infisical sm secrets` don't read `workspaceId`. Pass the project with `--projectId` or the `INFISICAL_PROJECT_ID` environment variable instead.- If you authenticate as a [machine identity](/documentation/platform/identities/machine-identities), `infisical run`, [`infisical export`](/cli/reference#export), and `infisical secrets` don't read `project-id`. Pass the project with `--projectId` or the `INFISICAL_PROJECT_ID` environment variable instead.++ If you authenticate as a [machine identity](/documentation/platform/identities/machine-identities), `infisical sm run`, [`infisical sm export`](/cli/reference#sm-export), and `infisical sm secrets` don't read `project-id`. Pass the project with `--projectId` or the `INFISICAL_PROJECT_ID` environment variable instead.</Note>## Set the environment- Without an environment setting, commands read secrets from your project's [`dev` environment](/documentation/platform/secrets-mgmt/project#project-environments) unless you pass [`--env`](/cli/reference#sm-run--flag-env). To use a different environment by default, set `defaultEnvironment` to the environment's slug:-Without an environment setting, commands read secrets from your project's [`dev` environment](/documentation/platform/secrets-mgmt/project#project-environments) unless you pass [`--env`](/cli/reference#run--flag-env). To use a different environment by default, set `default-environment` to the environment's slug:++Without an environment setting, commands read secrets from your project's [`dev` environment](/documentation/platform/secrets-mgmt/project#project-environments) unless you pass [`--env`](/cli/reference#sm-run--flag-env). To use a different environment by default, set `default-environment` to the environment's slug:- ```json .infisical.json- {- "workspaceId": "<project-id>",- "defaultEnvironment": "staging"- }+ ```yaml .infisical.yaml+ secrets-management:+ project-id: <project-id>+ default-environment: staging```- To pick the environment from the Git branch you're on, map branch names to environment slugs in `gitBranchToEnvironmentMapping`:-- ```json .infisical.json- {- "workspaceId": "<project-id>",- "defaultEnvironment": "dev",- "gitBranchToEnvironmentMapping": {- "main": "prod",- "staging": "staging"- }- }+ To pick the environment from the Git branch you're on, map branch names to environment slugs under `mappings.git-branch-to-environment`:++ ```yaml .infisical.yaml+ secrets-management:+ project-id: <project-id>+ default-environment: dev+ mappings:+ git-branch-to-environment:+ main: prod+ staging: staging```- The CLI matches only the last part of a branch name, after the final `/`. For example, the branch `release/staging` matches the key `staging`. If your current branch has no mapping, or you aren't on a branch (such as when you check out a specific commit), the CLI falls back to `defaultEnvironment`.+ The CLI matches only the last part of a branch name, after the final `/`. For example, the branch `release/staging` matches the key `staging`. If your current branch has no mapping, or you aren't on a branch (such as when you check out a specific commit), the CLI falls back to `default-environment`.The CLI picks the environment in this order:1. The `--env` flag-2. The environment mapped to your current Git branch-3. `default-environment`-4. `dev`+2. The `INFISICAL_ENVIRONMENT` environment variable+3. The environment mapped to your current Git branch- 4. `defaultEnvironment`++4. `default-environment`+5. `dev`++## Set the folder+- Without a folder setting, commands read secrets from the root of the environment (`/`) unless you pass [`--path`](/cli/reference#sm-run--flag-path). To read from a different [folder](/documentation/platform/folder) by default, set `defaultSecretPath` to the folder's path:++Without a folder setting, commands read secrets from the root of the environment (`/`) unless you pass [`--path`](/cli/reference#sm-run--flag-path). To read from a different [folder](/documentation/platform/folder) by default, set `default-secret-path` under `secrets-management`:+- ```json .infisical.json- {- "workspaceId": "<project-id>",- "defaultSecretPath": "/backend"- }++```yaml .infisical.yaml++secrets-management:++ project-id: <project-id>++ default-secret-path: /backend+```++The CLI picks the folder in this order:++1. The `--path` flag+2. The `INFISICAL_SECRET_PATH` environment variable- 3. `defaultSecretPath`++3. `default-secret-path`+4. `/`++The [`infisical sm secrets folders`](/cli/reference#sm-secrets-folders) commands don't read either setting, so pass `--path` to work in a folder other than `/`.## Set the Infisical instance@@@ -124,16 -106,16 +126,16 @@@ If you log in with your own account, [`## Use the file from another directory- The CLI looks for `.infisical.json` in the current directory, then in each parent directory up to the root of the file system. This means that if you have an `.infisical.json` file in the root of your codebase, that configuration applies to every directory under it.+ The CLI looks for `.infisical.yaml` in the current directory, then in each parent directory up to the root of the file system. This means that if you have an `.infisical.yaml` file in the root of your codebase, that configuration applies to every directory under it.-To read the project from a file somewhere else, such as one package's directory in a monorepo, pass the directory to `infisical run` with [`--project-config-dir`](/cli/reference#run--flag-project-config-dir):+To read the project from a file somewhere else, such as one package's directory in a monorepo, pass the directory to `infisical sm run` with [`--project-config-dir`](/cli/reference#sm-run--flag-project-config-dir):```bash-infisical run --project-config-dir ./services/api -- npm run dev+infisical sm run --project-config-dir ./services/api -- npm run dev```<Note>- `--project-config-dir` sets the project, environment, and folder. The instance setting still comes from the `.infisical.json` the CLI finds from your current directory.-`--project-config-dir` only sets the project. The environment and instance settings still come from the `.infisical.yaml` the CLI finds from your current directory.++`--project-config-dir` sets the project, environment, and folder. The instance setting still comes from the `.infisical.yaml` the CLI finds from your current directory.</Note>## Field reference@@@ -142,18 -124,18 +144,18 @@@The ID of the project to read secrets from. Not used when you authenticate as a machine identity.</ResponseField>- <ResponseField name="defaultEnvironment" type="string">+ <ResponseField name="secrets-management.default-environment" type="string">-The environment slug to use when `--env` isn't passed and no branch mapping matches.+The environment slug to use when `--env` and `INFISICAL_ENVIRONMENT` aren't set and no branch mapping matches.</ResponseField>- <ResponseField name="gitBranchToEnvironmentMapping" type="object">- Maps branch names to environment slugs, such as `{ "main": "prod" }`. Keys match only the last part of a branch name, after the final `/`.+ <ResponseField name="secrets-management.mappings.git-branch-to-environment" type="object">+ Maps branch names to environment slugs, such as `main: prod`. Keys match only the last part of a branch name, after the final `/`.</ResponseField>- <ResponseField name="defaultSecretPath" type="string">- The folder to read secrets from when `--path` and `INFISICAL_SECRET_PATH` aren't set. The `infisical sm` commands read it, except `infisical sm secrets folders`.+ <ResponseField name="secrets-management.default-secret-path" type="string">-The folder to read secrets from when [`--path`](/cli/reference#secrets-agent-proxy-run--flag-path) and `INFISICAL_SECRET_PATH` aren't set. Only the [`infisical secrets agent-proxy`](/cli/reference#secrets-agent-proxy) commands read it.++The folder to read secrets from when [`--path`](/cli/reference#sm-run--flag-path) and `INFISICAL_SECRET_PATH` aren't set. The `infisical sm` commands read it, except `infisical sm secrets folders`.</ResponseField>- <ResponseField name="domain" type="string">+ <ResponseField name="general.domain" type="string">The Infisical instance to connect to, such as `https://eu.infisical.com`. Must start with `https://` or `http://`.</ResponseField>diff --cc docs/cli/reference.mdxindex f265b7dfd3,4e86c66e2c..e6feb26a79--- a/docs/cli/reference.mdx+++ b/docs/cli/reference.mdx@@@ -1095,30 -1312,26 +1095,30 @@@ The hook runs `infisical scan git-chang</CLICommand><CLICommand- id="secrets"- command="secrets"+ id="service-token"+ command="service-token"+>++Manage service tokens. Service tokens are deprecated and will be removed in a future release. Use a [machine identity](/documentation/platform/identities/machine-identities) instead, and log in as it with [infisical login](/cli/reference#login).++</CLICommand>++<CLICommand+ id="service-token-create"+ command="service-token create"usage="[flags]"flags={[- { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to list secrets from. Every `infisical secrets` subcommand accepts it. Defaults to the [environment set in `.infisical.yaml`](/cli/project-config#set-the-environment), then `dev`." },- { name: "--expand", type: "bool", default: "true", description: "Resolve secret references and shell parameter expansions in secret values." },- { name: "--include-imports", type: "bool", default: "true", description: "Include secrets imported into the environment from other environments or folders." },- { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the secrets as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to list secrets from." },- { name: "--plain", type: "bool", deprecated: true, description: "Deprecated: use `--output` instead. Print only secret values, one per line." },- { name: "--projectId", value: "<string>", type: "string", description: "The project to list secrets from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },- { name: "--recursive", type: "bool", description: "Also list the secrets in every subfolder of `--path`." },- { name: "--secret-overriding", type: "bool", default: "true", description: "Show your personal secrets in place of shared secrets with the same name. Pass `--secret-overriding=false` to show only shared secrets." },- { name: "--tags", short: "-t", value: "<string>", type: "string", description: "Only list secrets with these tag slugs, separated by commas. `infisical secrets get` and `infisical secrets generate-example-env` accept it too." },- { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to fetch secrets with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ { name: "--access-level", short: "-a", value: "<stringSlice>", type: "stringSlice", required: true, description: "What the token can do: `read`, `write`, or both. Repeat the flag or separate the values with commas." },+ { name: "--expiry-seconds", short: "-e", value: "<int>", type: "int", default: "86400", description: "How long the token lasts, in seconds from now. Pass `0` for a token that never expires." },+ { name: "--name", short: "-n", value: "<string>", type: "string", default: "Service token generated via CLI", description: "The token's name." },- { name: "--projectId", value: "<string>", type: "string", description: "The project to create the token for. Without it, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The project to create the token for. Without it, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--scope", short: "-s", value: "<stringSlice>", type: "stringSlice", required: true, description: "An environment and folder the token can access, as `<env-slug>:<folder-path>`, such as `dev:/backend`. The folder path can be a glob pattern. Repeat the flag for several scopes." },+ { name: "--token-only", type: "bool", description: "Print only the token, to standard output, with no other details." },]}examples={[- { title: "List secrets in dev", code: `infisical secrets` },- { title: "List every secret in a folder tree", code: `infisical secrets --env=staging --path=/ --recursive` },- { title: "Print production secrets as JSON", code: `infisical secrets --env=prod --output=json` },+ { title: "Create a read-only token for two folders", code: "infisical service-token create --scope=dev:/global --scope=dev:/backend --access-level=read" },+ { title: "Create a read and write token that never expires", code: "infisical service-token create --scope='prod:/**' --access-level=read,write --expiry-seconds=0" },+ { title: "Capture the token in a variable", code: "TOKEN=$(infisical service-token create --scope=dev:/ --access-level=read --token-only)" },]}>@@@ -1211,10 -1413,10 +1211,10 @@@ The command exits with the agent's exi{ name: "--unmatched-host", value: "<string>", type: "string", default: "allow", description: "What to do with requests to a host that has no proxied service: `allow` forwards them with no credential, and `block` rejects them." },]}examples={[- { title: "Run an agent in the sandbox", code: "infisical secrets agent-proxy run --projectId=<project-id> --env=dev --path=/coding-agent -- claude" },- { title: "Read the project and environment from .infisical.yaml", code: "infisical secrets agent-proxy run -- claude" },- { title: "Allow only proxied services and one registry", code: "infisical secrets agent-proxy run --env=dev --unmatched-host=block --allow-host=registry.npmjs.org -- claude" },- { title: "Keep a log of proxied requests", code: "infisical secrets agent-proxy run --env=dev --log-file=/tmp/agent-proxy.log -- claude" },+ { title: "Run an agent in the sandbox", code: "infisical sm agent-proxy run --projectId=<project-id> --env=dev --path=/coding-agent -- claude" },- { title: "Read the project and environment from .infisical.json", code: "infisical sm agent-proxy run -- claude" },++ { title: "Read the project and environment from .infisical.yaml", code: "infisical sm agent-proxy run -- claude" },+ { title: "Allow only proxied services and one registry", code: "infisical sm agent-proxy run --env=dev --unmatched-host=block --allow-host=registry.npmjs.org -- claude" },+ { title: "Keep a log of proxied requests", code: "infisical sm agent-proxy run --env=dev --log-file=/tmp/agent-proxy.log -- claude" },]}>@@@ -1255,261 -1457,15 +1255,261 @@@ The proxy authenticates as its own mach</CLICommand><CLICommand- id="secrets-delete"- command="secrets delete"+ id="sm-dynamic-secrets"+ command="sm dynamic-secrets"+ usage="[flags]"+ flags={[- { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to work in. Every `infisical sm dynamic-secrets` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.json`, then `dev`." },++ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to work in. Every `infisical sm dynamic-secrets` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.yaml`, then `dev`." },+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the dynamic secrets as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to list dynamic secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to list dynamic secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--project-slug", value: "<string>", type: "string", description: "The slug of the project to list dynamic secrets from. Takes precedence over `--projectId`." },- { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project to list dynamic secrets from. Without it or `--project-slug`, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project to list dynamic secrets from. Without it or `--project-slug`, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ ]}+ examples={[+ { title: "List dynamic secrets in dev", code: "infisical sm dynamic-secrets" },+ { title: "List dynamic secrets in a production folder", code: "infisical sm dynamic-secrets --env=prod --path=/databases" },+ { title: "Print dynamic secrets as JSON", code: "infisical sm dynamic-secrets --projectId=<project-id> --output=json" },+ ]}+>++List the [dynamic secrets](/documentation/platform/dynamic-secrets/overview) in an environment and folder, with each one's provider, default TTL, and max TTL. A dynamic secret generates credentials on demand, such as a database user, and each set of credentials it generates is a lease. Manage leases with [infisical sm dynamic-secrets lease](/cli/reference#sm-dynamic-secrets-lease).++</CLICommand>++<CLICommand+ id="sm-dynamic-secrets-lease"+ command="sm dynamic-secrets lease"+ inheritedFlags={[+ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment that holds the dynamic secret." },+ ]}+>++Create, list, renew, and delete the leases of a dynamic secret.++</CLICommand>++<CLICommand+ id="sm-dynamic-secrets-lease-create"+ command="sm dynamic-secrets lease create"+ usage="<name> [flags]"+ args={[+ { name: "name", usage: "<name>", required: true, description: "The name of the dynamic secret to lease." },+ ]}+ flags={[+ { name: "--kubernetes-namespace", value: "<string>", type: "string", description: "The namespace to create the lease in. Used only by Kubernetes dynamic secrets." },+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print only the credentials, as `json`, `yaml`, or `dotenv`, instead of the lease details and a table." },- { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--plain", type: "bool", description: "Print each credential as `KEY=value`, one per line, with no other output. Ignored when you pass `--output`." },+ { name: "--principals", value: "<string>", type: "string", description: "The principals to put in the certificate, separated by commas. Required by SSH dynamic secrets, and each one must be allowed by the dynamic secret." },+ { name: "--project-slug", value: "<string>", type: "string", description: "The slug of the project that holds the dynamic secret. Takes precedence over `--projectId`." },- { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the dynamic secret. Without it or `--project-slug`, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the dynamic secret. Without it or `--project-slug`, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ { name: "--ttl", value: "<string>", type: "string", description: "How long the lease lasts, such as `30m` or `1h`. Defaults to the dynamic secret's default TTL, and can't exceed its max TTL." },+ ]}+ inheritedFlags={[+ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment that holds the dynamic secret." },+ ]}+ examples={[+ { title: "Lease database credentials for an hour", code: "infisical sm dynamic-secrets lease create postgres-app --env=prod --ttl=1h" },+ { title: "Lease credentials as JSON", code: "infisical sm dynamic-secrets lease create postgres-app --output=json" },+ { title: "Lease an SSH certificate", code: "infisical sm dynamic-secrets lease create ssh-prod \\\n --projectId=<project-id> \\\n --env=prod \\\n --principals=root,deploy" },+ ]}+>++Generate a new set of credentials from a dynamic secret. The command prints the lease ID, when the lease expires, and the credentials. Keep the lease ID to renew or delete the lease later, or find it with [infisical sm dynamic-secrets lease list](/cli/reference#sm-dynamic-secrets-lease-list).++The table and `--plain` show only credentials whose values are strings. Pass `--output` to get every credential the provider returns.++</CLICommand>++<CLICommand+ id="sm-dynamic-secrets-lease-delete"+ command="sm dynamic-secrets lease delete"+ usage="<lease-id> [flags]"+ args={[+ { name: "lease-id", usage: "<lease-id>", required: true, description: "The ID of the lease to delete." },+ ]}+ flags={[+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the deleted lease as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the lease's dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the lease's dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--project-slug", value: "<string>", type: "string", description: "The slug of the project that holds the lease. Takes precedence over `--projectId`." },- { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the lease. Without it or `--project-slug`, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the lease. Without it or `--project-slug`, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ ]}+ inheritedFlags={[+ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment that holds the lease's dynamic secret." },+ ]}+ examples={[+ { title: "Delete a lease", code: "infisical sm dynamic-secrets lease delete <lease-id> --env=prod" },+ ]}+>++Delete a lease before it expires, and revoke its credentials with the provider. `--env` and `--path` must point to the folder that holds the lease's dynamic secret, or Infisical reports that the lease doesn't exist.++</CLICommand>++<CLICommand+ id="sm-dynamic-secrets-lease-list"+ command="sm dynamic-secrets lease list"+ usage="<name> [flags]"+ args={[+ { name: "name", usage: "<name>", required: true, description: "The name of the dynamic secret to list leases for." },+ ]}+ flags={[+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the leases as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--project-slug", value: "<string>", type: "string", description: "The slug of the project that holds the dynamic secret. Takes precedence over `--projectId`." },- { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the dynamic secret. Without it or `--project-slug`, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the dynamic secret. Without it or `--project-slug`, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ ]}+ inheritedFlags={[+ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment that holds the dynamic secret." },+ ]}+ examples={[+ { title: "List a dynamic secret's leases", code: "infisical sm dynamic-secrets lease list postgres-app --env=prod" },+ ]}+>++List the active leases of a dynamic secret, with each lease's ID, expiry time, and creation time.++</CLICommand>++<CLICommand+ id="sm-dynamic-secrets-lease-renew"+ command="sm dynamic-secrets lease renew"+ usage="<lease-id> [flags]"+ args={[+ { name: "lease-id", usage: "<lease-id>", required: true, description: "The ID of the lease to renew." },+ ]}+ flags={[+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the renewed lease as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the lease's dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", short: "-p", value: "<string>", type: "string", default: "/", description: "The folder that holds the lease's dynamic secret. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--project-slug", value: "<string>", type: "string", description: "The slug of the project that holds the lease. Takes precedence over `--projectId`." },- { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the lease. Without it or `--project-slug`, the CLI uses the project in `.infisical.json`. Can also be set with `INFISICAL_PROJECT_ID`." },++ { name: "--projectId", value: "<string>", type: "string", description: "The ID of the project that holds the lease. Without it or `--project-slug`, the CLI uses the project in `.infisical.yaml`. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ { name: "--ttl", value: "<string>", type: "string", description: "How long to extend the lease by, from its current expiry, such as `30m` or `1h`. Defaults to the dynamic secret's default TTL." },+ ]}+ inheritedFlags={[+ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment that holds the lease's dynamic secret." },+ ]}+ examples={[+ { title: "Extend a lease by 30 minutes", code: "infisical sm dynamic-secrets lease renew <lease-id> --env=prod --ttl=30m" },+ ]}+>++Extend a lease before it expires, and print its new expiry time. A renewal can't push the lease past the dynamic secret's max TTL, counted from when the lease was created. `--env` and `--path` must point to the folder that holds the lease's dynamic secret, or Infisical reports that the lease doesn't exist.++</CLICommand>++<CLICommand+ id="sm-export"+ command="sm export"+ usage="[flags]"+ flags={[- { name: "--env", short: "-e", value: "<string>", type: "string", default: "dev", description: "The environment to export secrets from, such as `dev`, `staging`, or `prod`. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.json`, then `dev`." },++ { name: "--env", short: "-e", value: "<string>", type: "string", default: "dev", description: "The environment to export secrets from, such as `dev`, `staging`, or `prod`. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.yaml`, then `dev`." },+ { name: "--expand", type: "bool", default: "true", description: "Resolve secret references and shell parameter expansions in secret values. Pass `--expand=false` to export values exactly as stored." },+ { name: "--format", short: "-f", value: "<string>", type: "string", default: "dotenv", description: "The output format: `dotenv`, `dotenv-export`, `dotenv-eval`, `csv`, `json`, or `yaml`." },+ { name: "--include-imports", type: "bool", default: "true", description: "Include secrets imported into the environment from other environments or folders." },+ { name: "--output-file", short: "-o", value: "<string>", type: "string", description: "A file or directory to write to, instead of standard output. In a directory, the CLI writes `.env`, `secrets.json`, `secrets.csv`, or `secrets.yaml`, depending on the format. A file name without an extension gets the format's extension, and missing parent directories are created." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to export secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to export secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--projectId", value: "<string>", type: "string", description: "The project to export secrets from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--secret-overriding", type: "bool", default: "true", description: "Export your personal secrets in place of shared secrets with the same name. Pass `--secret-overriding=false` to export only shared secrets." },+ { name: "--tags", short: "-t", value: "<string>", type: "string", description: "Only export secrets with these tag slugs, separated by commas." },+ { name: "--template", value: "<string>", type: "string", description: "The path to a Go template to render and print instead of a file format. The template chooses its own project, environment, and folder, so every other `export` flag except `--token` is ignored." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ ]}+ examples={[+ { title: "Write a .env file", code: "infisical sm export --output-file=./.env" },+ { title: "Export production secrets as JSON", code: "infisical sm export --env=prod --format=json > secrets.json" },+ { title: "Load secrets into the current shell", code: "eval \"$(infisical sm export --format=dotenv-eval)\"" },+ { title: "Render secrets through a template", code: "infisical sm export --template=./secrets.tmpl" },+ ]}+>++Print an environment's secrets in a file format such as `.env` or JSON, for tools that read configuration from a file. Output goes to standard output unless you pass `--output-file`.++`dotenv` writes each secret as `KEY='value'`, and `dotenv-export` adds `export` in front. Neither escapes quotes inside values. `dotenv-eval` also writes `export` statements, but quotes each value so the output is safe to load with `eval` or `source`. No format escapes secret names, so load output into a shell only when every name is a valid shell variable name.++`--template` takes a Go template that fetches secrets with the functions the [Infisical Agent](/integrations/platforms/infisical-agent#available-secret-template-functions) provides, such as `listSecrets` and `getSecretByName`.++</CLICommand>++<CLICommand+ id="sm-run"+ command="sm run"+ usage="[flags] -- [command]"+ args={[+ { name: "command", usage: "[command]", description: "The command to run, after `--`. Everything after `--` is passed to it unchanged. Required unless you pass `--command`." },+ ]}+ flags={[+ { name: "--command", short: "-c", value: "<string>", type: "string", description: "A shell command to run instead of the arguments after `--`, such as `\"npm run build && npm start\"`. Use it to chain several commands." },- { name: "--env", short: "-e", value: "<string>", type: "string", default: "dev", description: "The environment to fetch secrets from, such as `dev`, `staging`, or `prod`. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.json`, then `dev`." },++ { name: "--env", short: "-e", value: "<string>", type: "string", default: "dev", description: "The environment to fetch secrets from, such as `dev`, `staging`, or `prod`. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.yaml`, then `dev`." },+ { name: "--expand", type: "bool", default: "true", description: "Resolve secret references and shell parameter expansions in secret values before injecting them. Pass `--expand=false` to inject values exactly as stored." },+ { name: "--include-imports", type: "bool", default: "true", description: "Include secrets imported into the environment from other environments or folders." },- { name: "--path", value: "<stringArray>", type: "stringArray", default: "/", description: "The folder to fetch secrets from. Repeat the flag to inject secrets from several folders. When a secret exists in more than one, the value from the last `--path` wins. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },- { name: "--project-config-dir", value: "<string>", type: "string", description: "The directory that contains `.infisical.json`. Use it when the file isn't in the directory you run the command from, such as in a monorepo." },++ { name: "--path", value: "<stringArray>", type: "stringArray", default: "/", description: "The folder to fetch secrets from. Repeat the flag to inject secrets from several folders. When a secret exists in more than one, the value from the last `--path` wins. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },++ { name: "--project-config-dir", value: "<string>", type: "string", description: "The directory that contains `.infisical.yaml`. Use it when the file isn't in the directory you run the command from, such as in a monorepo." },+ { name: "--projectId", value: "<string>", type: "string", description: "The project to fetch secrets from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--recursive", type: "bool", description: "Also inject the secrets in every subfolder of each `--path`." },+ { name: "--secret-overriding", type: "bool", default: "true", description: "Use your personal secrets in place of shared secrets with the same name. Pass `--secret-overriding=false` to use only shared secrets." },+ { name: "--tags", short: "-t", value: "<string>", type: "string", description: "Only inject secrets with these tag slugs, separated by commas." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to fetch secrets with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ { name: "--watch", type: "bool", description: "Restart the command whenever secrets change in Infisical. Intended for local development." },+ { name: "--watch-interval", value: "<int>", type: "int", default: "10", description: "How often, in seconds, `--watch` checks for changes. The minimum is `5`." },+ ]}+ examples={[+ { title: "Start a dev server with secrets", code: `infisical sm run -- npm run dev` },+ { title: "Use another environment and two folders", code: `infisical sm run --env=prod --path=/shared --path=/backend -- node server.js` },+ { title: "Run in CI with a machine identity", code: `export INFISICAL_TOKEN=<access-token>+infisical sm run --projectId=<project-id> --env=prod -- npm start` },+ { title: "Restart when secrets change", code: `infisical sm run --watch -- npm run dev` },+ ]}+>+- Inject secrets from Infisical into a process as environment variables. The CLI fetches the secrets for the project linked in [`.infisical.json`](/cli/project-config), or the one you pass with `--projectId`, and starts your command with them set.++Inject secrets from Infisical into a process as environment variables. The CLI fetches the secrets for the project linked in [`.infisical.yaml`](/cli/project-config), or the one you pass with `--projectId`, and starts your command with them set.++Secrets override variables that are already set in your shell. Secrets named `HOME`, `PATH`, `PS1`, `PS2`, `PWD`, `EDITOR`, `XAUTHORITY`, `USER`, `TERM`, `TERMINFO`, `SHELL`, or `MAIL`, or starting with `XDG_` or `LC_`, are never injected.++</CLICommand>++<CLICommand+ id="sm-secrets"+ command="sm secrets"+ usage="[flags]"+ flags={[- { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to list secrets from. Every `infisical sm secrets` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.json`, then `dev`." },++ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to list secrets from. Every `infisical sm secrets` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.yaml`, then `dev`." },+ { name: "--expand", type: "bool", default: "true", description: "Resolve secret references and shell parameter expansions in secret values." },+ { name: "--include-imports", type: "bool", default: "true", description: "Include secrets imported into the environment from other environments or folders." },+ { name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the secrets as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to list secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to list secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },+ { name: "--plain", type: "bool", deprecated: true, description: "Deprecated: use `--output` instead. Print only secret values, one per line." },+ { name: "--projectId", value: "<string>", type: "string", description: "The project to list secrets from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },+ { name: "--recursive", type: "bool", description: "Also list the secrets in every subfolder of `--path`." },+ { name: "--secret-overriding", type: "bool", default: "true", description: "Show your personal secrets in place of shared secrets with the same name. Pass `--secret-overriding=false` to show only shared secrets." },+ { name: "--tags", short: "-t", value: "<string>", type: "string", description: "Only list secrets with these tag slugs, separated by commas. `infisical sm secrets get` and `infisical sm secrets generate-example-env` accept it too." },+ { name: "--token", value: "<string>", type: "string", description: "A machine identity access token to fetch secrets with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },+ ]}+ examples={[+ { title: "List secrets in dev", code: `infisical sm secrets` },+ { title: "List every secret in a folder tree", code: `infisical sm secrets --env=staging --path=/ --recursive` },+ { title: "Print production secrets as JSON", code: `infisical sm secrets --env=prod --output=json` },+ ]}+>++Print the secrets in an environment and folder as a table. Pass `--output` to print them as JSON, YAML, or dotenv instead.++</CLICommand>++<CLICommand+ id="sm-secrets-delete"+ command="sm secrets delete"usage="<name>... [flags]"args={[{ name: "name", usage: "<name>...", required: true, repeatable: true, description: "The names of the secrets to delete." },]}flags={[{ name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the result as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to delete from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to delete from." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to delete from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },{ name: "--projectId", value: "<string>", type: "string", description: "The project to delete from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },{ name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },{ name: "--type", value: "<string>", type: "string", default: "personal", description: "Which secrets to delete: `personal` or `shared`." },@@@ -1530,10 -1486,10 +1530,10 @@@ Without `--type`, the command deletes y</CLICommand><CLICommand- id="secrets-folders"- command="secrets folders"+ id="sm-secrets-folders"+ command="sm secrets folders"flags={[- { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to work in. Every `infisical sm secrets folders` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.json`, then `dev`." },- { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to work in. Every `infisical secrets folders` subcommand accepts it." },++ { name: "--env", value: "<string>", type: "string", default: "dev", description: "The environment to work in. Every `infisical sm secrets folders` subcommand accepts it. Defaults to `INFISICAL_ENVIRONMENT`, then the [default environment](/cli/project-config#set-the-environment) in `.infisical.yaml`, then `dev`." },]}inheritedFlags={[{ name: "--tags", short: "-t", value: "<string>", type: "string", description: "Has no effect on folder commands." },@@@ -1614,11 -1570,11 +1614,11 @@@ List the folders inside `--path`</CLICommand><CLICommand- id="secrets-generate-example-env"- command="secrets generate-example-env"+ id="sm-secrets-generate-example-env"+ command="sm secrets generate-example-env"usage="[flags]"flags={[- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read secrets from." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read secrets from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },{ name: "--projectId", value: "<string>", type: "string", description: "The project to read secrets from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },{ name: "--token", value: "<string>", type: "string", description: "A machine identity access token to authenticate with, instead of your login. Without it, the CLI reads `INFISICAL_UNIVERSAL_AUTH_ACCESS_TOKEN`, then `INFISICAL_TOKEN`." },]}@@@ -1648,7 -1604,7 +1648,7 @@@ Each secret's comment in Infisical appe{ name: "--expand", type: "bool", default: "true", description: "Resolve secret references and shell parameter expansions in secret values." },{ name: "--include-imports", type: "bool", default: "true", description: "Also look for the names among secrets imported from other environments or folders." },{ name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the secrets as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read from." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to read from. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },{ name: "--plain", type: "bool", description: "Print only the values, one per line." },{ name: "--projectId", value: "<string>", type: "string", description: "The project to read from. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },{ name: "--recursive", type: "bool", description: "Also look for the names in every subfolder of `--path`." },@@@ -1682,7 -1638,7 +1682,7 @@@ In scripts, pass `--plain --silent` toflags={[{ name: "--file", value: "<string>", type: "string", description: "A `.env` or YAML file to read secrets from, instead of arguments. Lines starting with `#` or `//` are comments." },{ name: "--output", short: "-o", value: "<string>", type: "string", description: "Print the result as `json`, `yaml`, or `dotenv` instead of a table." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to write to. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.json`, then `/`." },- { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to write to." },++ { name: "--path", value: "<string>", type: "string", default: "/", description: "The folder to write to. Defaults to `INFISICAL_SECRET_PATH`, then the [default folder](/cli/project-config#set-the-folder) in `.infisical.yaml`, then `/`." },{ name: "--projectId", value: "<string>", type: "string", description: "The project to write to. Required when you authenticate with a machine identity. Can also be set with `INFISICAL_PROJECT_ID`." },{ name: "--show-values", type: "bool", description: "Show secret values in the result table instead of masking them." },{ name: "--tag", value: "<stringArray>", type: "stringArray", description: "A tag to attach, created if it doesn't exist. Repeat the flag for several tags. When you update a secret, these tags replace its existing ones." },diff --cc docs/documentation/guides/local-development.mdxindex d55cec34f4,8c6c2517f5..15befa87db--- a/docs/documentation/guides/local-development.mdx+++ b/docs/documentation/guides/local-development.mdx@@@ -114,13 -114,13 +114,13 @@@ The hook stops the commit when it findYour shell reports `infisical: command not found`, or `infisical is not recognized` on Windows. The CLI isn't on your `PATH`. Run the install command for your platform again, then open a new terminal window so that it picks up the updated `PATH`.</Accordion><Accordion title="Your application starts, but a secret is missing">- The CLI is probably reading from a different environment or folder than the one holding your secret. Run `infisical secrets --env=dev --path=/` to see what it resolves to, confirm the environment slug in your project settings, and add `--path` if the secret lives in a folder rather than at the root.+ The CLI is probably reading from a different environment or folder than the one holding your secret. Run `infisical sm secrets --env=dev --path=/` to see what it resolves to, confirm the environment slug in your project settings, and add `--path` if the secret lives in a folder rather than at the root.</Accordion><Accordion title="The CLI can't find your project, or asks you to log in again">- The CLI is pointed at the wrong instance. It uses Infisical Cloud US by default, so an EU or self-hosted account needs the address set through the `INFISICAL_DOMAIN` environment variable, the `--domain` flag, or the `domain` field in [`.infisical.json`](/cli/project-config).+ The CLI is pointed at the wrong instance. It uses Infisical Cloud US by default, so an EU or self-hosted account needs the address set through the `INFISICAL_DOMAIN` environment variable, the `--domain` flag, or the `general.domain` field in [`.infisical.yaml`](/cli/project-config).</Accordion><Accordion title="It works in your terminal but not in your editor">- Your editor's run configuration starts your application on its own, outside the `infisical run` process, and the injected variables exist only inside that process and the commands it starts. Change the run configuration to call `infisical run --env=dev -- <your-start-command>`. Avoid launching the editor itself through `infisical run`, because its extensions, language servers, and other child processes would also inherit the secrets.+ Your editor's run configuration starts your application on its own, outside the `infisical sm run` process, and the injected variables exist only inside that process and the commands it starts. Change the run configuration to call `infisical sm run --env=dev -- <your-start-command>`. Avoid launching the editor itself through `infisical sm run`, because its extensions, language servers, and other child processes would also inherit the secrets.</Accordion></AccordionGroup>diff --cc docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdxindex 5060e0dab5,41459703d3..4189349e43--- a/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdx+++ b/docs/documentation/platform/agent-proxy/standalone-agent-proxy.mdx@@@ -62,22 -62,22 +62,22 @@@ Each authenticates as its own [machine## Configuration- Every option resolves from the same sources, in order: **the flag → an environment variable → `.infisical.json` → the built-in default.** An explicitly-passed flag always wins. Where the environment variables are already set on the host, the flags fall away and only your agent command remains: `infisical sm agent-proxy connect -- claude`.-Every option resolves from the same sources, in order: **the flag → an environment variable → `.infisical.yaml` → the built-in default.** An explicitly-passed flag always wins. Where the environment variables are already set on the host, the flags fall away and only your agent command remains: `infisical secrets agent-proxy connect -- claude`.++Every option resolves from the same sources, in order: **the flag → an environment variable → `.infisical.yaml` → the built-in default.** An explicitly-passed flag always wins. Where the environment variables are already set on the host, the flags fall away and only your agent command remains: `infisical sm agent-proxy connect -- claude`.- | Option | Flag | Environment variable | `.infisical.json` |+ | Option | Flag | Environment variable | `.infisical.yaml` || --- | --- | --- | --- || Auth | `--client-id` / `--client-secret` | `INFISICAL_UNIVERSAL_AUTH_CLIENT_ID` / `_SECRET` | — |- | Instance | `--domain` | `INFISICAL_DOMAIN` | `domain` |- | Project | `--projectId` | `INFISICAL_PROJECT_ID` | `workspaceId` |- | Environment slug | `--env` | `INFISICAL_ENVIRONMENT` | `defaultEnvironment` |- | Secret path | `--path` | `INFISICAL_SECRET_PATH` | `defaultSecretPath` |+ | Instance | `--domain` | `INFISICAL_DOMAIN` | `general.domain` |+ | Project | `--projectId` | `INFISICAL_PROJECT_ID` | `secrets-management.project-id` |+ | Environment slug | `--env` | `INFISICAL_ENVIRONMENT` | `secrets-management.default-environment` |+ | Secret path | `--path` | `INFISICAL_SECRET_PATH` | `secrets-management.default-secret-path` || Proxy address | `--proxy` | `INFISICAL_AGENT_PROXY_ADDRESS` | — |<Note>- The proxy address is the one setting that can't come from `.infisical.json`. That file is usually committed to your repository, so a wrong or malicious value would silently route every agent's traffic through the wrong host. Pass it with `--proxy` or `INFISICAL_AGENT_PROXY_ADDRESS` instead.+ The proxy address is the one setting that can't come from `.infisical.yaml`. That file is usually committed to your repository, so a wrong or malicious value would silently route every agent's traffic through the wrong host. Pass it with `--proxy` or `INFISICAL_AGENT_PROXY_ADDRESS` instead.</Note>-See the [CLI reference](/cli/reference#secrets-agent-proxy) for every flag on both subcommands.+See the [CLI reference](/cli/reference#sm-agent-proxy) for every flag on both subcommands.## Deployment