Skip to content

No way to disable interactive login prompts #5134

@ixxie

Description

@ixxie

Describe the bug

We are using the infisical CLI within our internal CLI. infisical run works great, but we are constantly getting burnt by outdated sessions causing our commands to hang.

I'm okay with our command just exiting with an informative message if infisical is logged in: the problem is, it seems very hard or impossible to do. I've been trying to have our CLI call infisical user get token to check if there is a session. The problem is that if there is no session, it triggers an interactive login session which neither --silent nor --plain disable.

To Reproduce

Try to create a cross-platform script that can check if there is an active infisical session.

Expected behavior

A --non-interactive flag would be awesome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions