This is Unofficial Cli Client for the API of deepl.com
You need to set your apikey
export DEEPL_APIKEY
Then you can run the deeplclient command
deepl -text これはテストです -srclang JA -targetlang EN
The response would be like below
{"translations":[{"detected_source_language":"JA","text":"This is a test."}]}%
go get -u github.com/mickeey2525/deeplclient