efetch nucleotide -> protein ids I'm downloading translated viral genomes initially via Blast - which had shortcomings - and now by efetch.

What I want to do is obtain a complete list of all translated protein ids from a nucleotide Genbank entry.

efetch -db nucleotide -format gpc -id MT039887 | xtract -insd ....


The protein id and the translated gene sequences are within the efetch -db nucleotide -format gpc -id MT039887 output ... but how do I use xtract to parse them?
If you want the cds in fasta format, try:

esearch -db nucleotide -query MT039887 | efetch -format fasta_cds_na


And for the proteins sequence in fasta format:

elink -db nucleotide -target protein -id MT039887 | efetch -format fasta