You can give yourself items with a command (/ give), but that should also work so that you give yourself, for example, a fishing rod with a shelf life, but I play on minecraft Bedrock please consider!
I think you have to do that individually, but if you want to type in half an hour then you are welcome to try. What are you playing on
I play on Playstation 4
I would do it like this / give @s minecraft: fishing_rod.
Then I would hold the item in my hand and do / enchant @s minecraft: unbreaking [level e.g.: 1].
If Step 2 doesn't work then do it with the anvil and an Enchanted Book.
Thank you