Set permission level on a command

How to set permission level on a command
example: / cars
I will be very grateful to anyone who can help

You can set restricted bool to true and then add an ace to your server config for using the command