The only way to get the piercing enchantment to apply to the crossbow is by using an enchantment table. You can't use the anvil for it and you can't use commands to enchant it either.
The only way to get the piercing enchantment to apply to the crossbow is by using an enchantment table. You can't use the anvil for it and you can't use commands to enchant it either.
Cannot confirm with commands. Applying works just fine.