Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add pre commit install command to README.md

Maidul Islamd0d6419d4d2c
diff --git a/README.md b/README.md
index 30dda9d14a..b180a23cd0 100644
--- a/README.md
+++ b/README.md
@@ -104,10 +104,10 @@ To scan your uncommitted git changes, run:
infisical scan git-changes --verbose
```
-You can also scan your uncommited but staged changes by running the command below. This command can also be used as a pre-commit hook to prevent secret leak.
+Install pre commit hook to scan each commit before you push to your repository
```
-infisical scan git-changes --staged --verbose
+infisical scan install --pre-commit-hook
```
Lean about Infisical's code scanning feature [here](https://infisical.com/docs/cli/scanning-overview)