Control device by command line

Hey There I have a raspbee 2 on a raspberry pi. I use a zigbee plug to control my 3d printer.

I use octoprint, there is an option to start and stop devices per command line.

Is there a possibility to controll deconz devices by command line?

That’s what the rest api is for Getting Started - deCONZ REST-API

Thx for your quick help, I went through the tutorial but something went wrong. I clicked on the authenticate button then send it on postman.

Then I get this:
“error”: {
“address”: “/”,
“description”: “unauthorized user”,
“type”: 1

I used to write:
Get and

May be you didn’t unlock your gateway, it’s explained in the link @Mimiix gave earlier.