[PR #2821] [MERGED] [client] Add state handling cmdline options #15662

Closed
opened 2026-08-05 03:08:09 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2821
Author: @lixmal
Created: 10/31/2024
Status: Merged
Merged: 12/3/2024
Merged by: @lixmal

Base: mainHead: add-state-cmdline


📝 Commits (3)

  • e0a83e6 Add state handling cmdline options
  • 61219b0 Remove duplicates
  • 0851075 Merge branch 'main' into add-state-cmdline

📊 Changes

7 files changed (+1233 additions, -169 deletions)

View changed files

client/cmd/state.go (+181 -0)
📝 client/internal/connect.go (+13 -0)
📝 client/internal/statemanager/manager.go (+176 -44)
📝 client/proto/daemon.pb.go (+602 -124)
📝 client/proto/daemon.proto (+45 -0)
📝 client/proto/daemon_grpc.pb.go (+114 -0)
📝 client/server/state.go (+102 -1)

📄 Description

Describe your changes

$ ./netbird state --help
Provides commands for managing and inspecting the Netbird daemon state.

Usage:
  netbird state [command]

Available Commands:
  clean       Clean stored states
  delete      Delete stored states
  list        List all stored states

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2821 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 10/31/2024 **Status:** ✅ Merged **Merged:** 12/3/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `add-state-cmdline` --- ### 📝 Commits (3) - [`e0a83e6`](https://github.com/netbirdio/netbird/commit/e0a83e62a0ae134fdf1224075bbe3a0c2851011f) Add state handling cmdline options - [`61219b0`](https://github.com/netbirdio/netbird/commit/61219b0a04ba156bd4a0ca5790c5789504c25780) Remove duplicates - [`0851075`](https://github.com/netbirdio/netbird/commit/0851075d4cc22337e13cd0b24f2f6cfb4a4d3c79) Merge branch 'main' into add-state-cmdline ### 📊 Changes **7 files changed** (+1233 additions, -169 deletions) <details> <summary>View changed files</summary> ➕ `client/cmd/state.go` (+181 -0) 📝 `client/internal/connect.go` (+13 -0) 📝 `client/internal/statemanager/manager.go` (+176 -44) 📝 `client/proto/daemon.pb.go` (+602 -124) 📝 `client/proto/daemon.proto` (+45 -0) 📝 `client/proto/daemon_grpc.pb.go` (+114 -0) 📝 `client/server/state.go` (+102 -1) </details> ### 📄 Description ## Describe your changes ``` $ ./netbird state --help Provides commands for managing and inspecting the Netbird daemon state. Usage: netbird state [command] Available Commands: clean Clean stored states delete Delete stored states list List all stored states ``` ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:08:09 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15662