Skip to content

connectors login required before connectors <command group> --help, but error message doesn't say so #3700

@lorenabalan

Description

@lorenabalan

Bug Description

When installing the connectors CLI locally from main, if you don't run login first, none of the commands with --help will work and the error message is confusing.

To Reproduce

Steps to reproduce the behavior:

  1. Go to connectors repo in a new virtual environment (python -m venv .venv)
  2. Install CLIs locally (make install or pip install -e .)
  3. Try --help on one of the connectors commands like connectors job --help
  4. See error .cli/config.yml was not found. Make sure that the config is either present at the default location (.cli/config.yml) or it's passed via the '-c' or '--config' option.

Expected behavior

--help commands should ideally work without login, but if not possible we should prompt the user to run connectors login first.

Optionally, as @seanstory suggested, it would be nice if we can default to calling login in the background with default credentials, such as elastic & changeme in order make the UX a bit smoother.

Screenshots

Image

Environment

  • OS: MacOS 15.6.1
  • Version: 9.2.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions