maas $MAAS_USER machines create architecture=amd64 power_type=virsh mac_addresses=52:54:00:00:00:01
{"power_parameters": ["This field is required."]}
having said that, you are missing the power_parameters_power_address and power_parameters_power_id (also power_parameters_power_password if you have a password)
OK, It seems that the pythonlib-maas has taken the command maas.
~: which maas
/home/{username}/.local/bin/maas
How can I access the genuine maas command without removing the python lib? I depend on the pythonlib-maas for utility scripts synchronising metadata from MAAS to the netbox. Thanks
The problem is that the python-libmaas CLI name clashes with the MAAS CLI name. If you look at your PATH variable, it defines the order. If you change it in the future for whatever reason, your scripts will be messed up as the MAAS CLI might be executed first.
If you installed maas with snap, you can find the CLI at /snap/bin/maas.