Can I spy a channel or a exten by CLI or AMI?

I know I can control the tel by Asterisk Manager Interface commands, like transfer, hangup, or make a new call.
But how can I spy a channel by AMI commands?

I try to use help but it seems not have any command about spy function.
It seems a app called ‘chan_spy’ but how can I use it by AMI?

You have to use Orignate to start an application on a newly created channel, from AMI.