From 4116dde66feebda93f9480176c36bc66c994e43d Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Oct 2025 09:42:29 -0300 Subject: [PATCH] docs: clarify login command flags and their requirements for non-interactive authentication --- docs/cli/commands/login.mdx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/cli/commands/login.mdx b/docs/cli/commands/login.mdx index d55b3b7f9..a995cc382 100644 --- a/docs/cli/commands/login.mdx +++ b/docs/cli/commands/login.mdx @@ -406,7 +406,11 @@ The login command supports a number of flags that you can use for different auth ``` #### Description - Email address for direct user login. Must be used together with `--password` for non-interactive authentication. + User email address. Required if you want to do a non-interactive login when the **--method** flag is set to **user**. Must be used together with the `--password` flag. + + + You can omit the **--method=user** if you want as it's the default method. + The `email` flag can be substituted with the `INFISICAL_EMAIL` environment variable. @@ -419,12 +423,16 @@ The login command supports a number of flags that you can use for different auth ``` #### Description - Password for direct user login. Must be used together with `--email` for non-interactive authentication. + User password. Required if you want to do a non-interactive login when the **--method** flag is set to **user**. Must be used together with the `--email` flag. For security in CI/CD environments, prefer using the `INFISICAL_PASSWORD` environment variable instead of passing the password as a command-line flag. + + You can omit the **--method=user** if you want as it's the default method. + + The `password` flag can be substituted with the `INFISICAL_PASSWORD` environment variable.