To interact with ICRC-2 locally, you will need to deploy the ICRC-1 ledger canister locally. You can learn how to do that here.
But when I try to deploy icrc1_ledger_canister locally, it get asked to provide a token symbol, whereas I don’t want to create a token, only make ICP recurring payments…
To confirm, you only want to make reoccurring payments of ICP, not launch your own token on ICP (or make reoccurring payments of your own token on ICP)?
You got it right, On the Mainnet, all of those token canisters are deployed and there is no need to redeploy any token canister(in your case ICP icrc2 canister). You can simply provide the icp canister id which is “ryjl3-tyaaa-aaaaa-aaaba-cai” and start making calls to it.
But on your local environment since those token canisters are not deployed(They don’t exist in your PC), you have to deploy your token casniter.
If you dont want to deploy a token locally or it’s complicated, you can also test your app on Mainnet without paying any cycles for canister deployment, simply by using playground environment which allows you to deploy a temporary canister for only 20 minutes to the main net IC.
So by running the command you’ve shared, it will create a token canister on your local machine with the canister id “ryjl3-tyaaa-aaaaa-aaaba-cai”, which is the same canister id as ICP on main net IC.
If that is your intention is to simulate ICP token on your local machine you can run the same command that you’ve shared.
As soon as you run that command, you will have a token on your local network called LICP(local ICP) with “ryjl3-tyaaa-aaaaa-aaaba-cai” as ID, and you can use this token for testing purposes.
Having said that, all the ICRC1 and 2 methods will be included in that.