Skip to content

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

add tags to cli's secret cmd

Matheus Nogueira160bdf51bf12
diff --git a/docs/cli/commands/secrets.mdx b/docs/cli/commands/secrets.mdx
index 1bb575ebde..e6eb8f1246 100644
--- a/docs/cli/commands/secrets.mdx
+++ b/docs/cli/commands/secrets.mdx
@@ -234,6 +234,15 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
infisical secrets set DOMAIN=example.com --type=personal
```
+ </Accordion>
+ <Accordion title="--tag">
+ Used to attach tags to the secret. If a tag does not exist on the server, it will be created automatically. This flag overrides any existing tags on the secret. If not provided, existing tags are kept intact. You can specify multiple `--tag` flags to add multiple tags.
+
+ ```bash
+ # Example
+ infisical secrets set DOMAIN=example.com --tag=backend --tag=production
+ ```
+
</Accordion>
<Accordion title="--file">
Used to set secrets from a file, supporting both `.env` and `YAML` formats. The file path can be either absolute or relative to the current working directory.