Hi Rahul,
I think you are running the command with the same user, who's lacking the privilege.
If so, please use a different user with SYS_REPO privilege.
You can also use stored procedure as mentioned in the help link earlier.
Regards
Prithviraj