Skip to main content
Question

What are the steps to create worker group via CLI?

  • Mar 11, 2025 3:13 AM UTC
  • 3 replies
  • 142 views

What are the steps to create worker group via CLI?

3 replies

I do not believe there is a way today to create a worker group via CLI: https://docs.cribl.io/stream/cli-reference#groups


It is possible via the REST API. See POST /master/groups https://docs.cribl.io/api


Jon Rust
Forum|alt.badge.img
  • Employee
  • Mar 11, 2025 4:46 AM UTC

Using the API can be daunting, but your browser can help a lot. All GUI interactions are using the API, so if you go into developer mode and check what happens when you take an action, you can pretty easily replicate it with curl. For the case of new worker group, I came up with this:

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <token>" https://leader-node/api/v1/master/groups -d '{"onPrem":true,"isFleet":false,"workerRemoteAccess":true,"isSearch":false,"id":"NewGroupNameHere","description":"A new group for fun and profit"}'

  • Author
  • New Participant
  • Mar 11, 2025 4:46 AM UTC

Thank you Brendan and Jon!