How can I find the CLI equivalent of any console operation in AWS?
Is there any way to generate that?
For some services AWS provides such equivalent, but there is no general way for that. You could try a third party tool Console Recorder for AWS:
Records actions made in the AWS Management Console and outputs the equivalent CLI/SDK commands and CloudFormation/Terraform templates.