Add devices to a group via CLI
Add devices into your preferred group automatically during enrollment
The Orchard binary has the ability to assign devices directly to a group, either during enrollment, or as a separate command.
The basic syntax is:
orchard --group <group-key>
You can find the "group key" in the web interface, on the specific group page:

For example, taking the above group id:
orchard --group cmswyyxdz007g0f7xw5rri86a
To add the device into the group at the same time as enrollment, combine it with the enroll option:
orchard enroll --secret <secret-key> --group <group-id>