Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"netbird status --json" should return json at NeedsLogin stage #2780

Open
Silex opened this issue Oct 25, 2024 · 3 comments
Open

"netbird status --json" should return json at NeedsLogin stage #2780

Silex opened this issue Oct 25, 2024 · 3 comments

Comments

@Silex
Copy link

Silex commented Oct 25, 2024

I'm trying to detect wether netbird was already configured or not.

Right now I'm doing "netbird status | grep NeedsLogin" but it'd be more logical if I could parse the json whatever stage netbird is (needslogin, disconnected, connected).

@mgarces
Copy link
Contributor

mgarces commented Oct 25, 2024

so your suggestion is that --json is always available, even when client is not configured?

@Silex
Copy link
Author

Silex commented Oct 25, 2024

Yes, with data like { "status": "NeedLogin" } (and additional available info)

@Silex
Copy link
Author

Silex commented Oct 28, 2024

That said I'm open for a better way of reporting "Client is not configured".

netbird status | grep NeedsLogin works but it does not feel very robust.

My use case is that I'm doing an OpenWRT netbird package with automatic client configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants