This is my first post, please be kind

I have a couple of animated gifs that I downloaded and I'd like to make a specific color (black) transparent in each of the layers of the gifs. Is there a simply way to do it via the command line?
Best wishes
Paul