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
update docs
adilson35a57e9a6633
diff --git a/docs/cli/project-config-migration.mdx b/docs/cli/project-config-migration.mdxindex 279bfdf4c9..7407c4b313 100644--- a/docs/cli/project-config-migration.mdx+++ b/docs/cli/project-config-migration.mdx@@ -7,6 +7,8 @@ description: "The Infisical CLI now reads project settings from `.infisical.yamlThe CLI is moving away from `.infisical.json`. It now reads [project settings](/cli/project-config) from `.infisical.yaml`. The CLI still reads `.infisical.json` for now, but a future release will stop reading it.+Starting with version 0.44.3, if you run a command in a directory that has `.infisical.json`, the CLI creates `.infisical.yaml` in the same directory with the same settings. The CLI leaves `.infisical.json` in place for you to delete.+## Who is affectedYou're affected if you use an `.infisical.json` file anywhere, including:@@ -38,12 +40,11 @@ Let the CLI create `.infisical.yaml` from `.infisical.json`, or create `.infisicinfisical secrets```- If you pass `--silent`, request JSON, CSV, or YAML output, or run the CLI in a Docker container, the CLI creates `.infisical.yaml` only when the command reads the project settings, as `infisical secrets` does.-- The CLI copies every setting from `.infisical.json` into a new `.infisical.yaml` in the same directory, leaves `.infisical.json` in place, and prints the paths of both files:+ The CLI creates `.infisical.yaml` and prints the path of the new file, followed by a warning that both files exist:```- Created /home/user/my-app/.infisical.yaml from the legacy /home/user/my-app/.infisical.json, which was left in place. .infisical.yaml now takes precedence, so future changes belong there; commit it and delete the legacy file when ready.+ Created /home/user/my-app/.infisical.yaml from the legacy /home/user/my-app/.infisical.json (commit it if this project is under version control).+ Warning: Both .infisical.yaml and .infisical.json exist in /home/user/my-app. .infisical.yaml takes precedence, so the legacy /home/user/my-app/.infisical.json is no longer used and you can remove it.```</Step><Step>@@ -59,7 +60,7 @@ Let the CLI create `.infisical.yaml` from `.infisical.json`, or create `.infisicIf your repository has more than one `.infisical.json`, such as one per package in a monorepo, run a command in each directory that holds one.- If the CLI can't write `.infisical.yaml`, for example because the directory is read-only, the command still runs with the settings in `.infisical.json`, and the CLI tries again the next time you run a command. At most once a day, the CLI also prints a deprecation notice that names the directory it couldn't write to. To finish the migration, make the directory writable and run a command again, or follow the steps in the **Edit the file by hand** tab.+ Until you commit `.infisical.yaml`, the CLI tries to create the file again each time it runs in a new checkout of the repository, such as in every CI pipeline run. The file appears there as untracked, so if a CI step requires a clean working tree, that step can fail.</Tab><Tab title="Edit the file by hand">@@ -142,6 +143,11 @@ Check that the command lists the secrets from the project and environment you exThe CLI reads `.infisical.yaml` and ignores `.infisical.json`, so changesyou make to `.infisical.json` don't apply. Make any changes in`.infisical.yaml`.++ In version 0.44.3 and later, each time you run a command, the CLI also+ prints a warning that both files exist. To stop the warning, delete+ `.infisical.json`.+</Accordion><Accordion title="Can I run infisical init instead?">`infisical init` writes a new `.infisical.yaml` that holds only the project@@ -149,12 +155,29 @@ Check that the command lists the secrets from the project and environment you exsettings from `.infisical.json`. To keep those settings, let the CLI create`.infisical.yaml` from `.infisical.json`, or create `.infisical.yaml` byhand.++ </Accordion>+ <Accordion title="What if the CLI can't create .infisical.yaml?">+ If the CLI can't write `.infisical.yaml`, for example because the directory+ is read-only, the command still runs with the settings in+ `.infisical.json`, and the CLI tries again the next time you run a command.+ At most once a day, the CLI also prints a deprecation notice that names the+ directory it couldn't write to.++ To finish the migration, make the directory writable and run a command+ again, or follow the steps in the **Edit the file by hand** tab.+</Accordion><Accordion title="How do I hide the deprecation notice?">The notice stops once `.infisical.yaml` exists. To hide the notice beforethen, set the `INFISICAL_DISABLE_WORKSPACE_CONFIG_MIGRATION_NOTICE`- environment variable to any value, such as `true`. Both the notice and the- message the CLI prints when it creates `.infisical.yaml` go to standard- error, so they don't change the output of commands like `infisical export`.+ environment variable to any value, such as `true`. Neither the variable nor+ `--silent` hides the warning that both files exist. To stop that warning,+ delete `.infisical.json`.++ The CLI writes the notice, the warning, and the message about creating+ `.infisical.yaml` to standard error, so they don't change the output of+ commands like `infisical export`.+</Accordion></AccordionGroup>