Translating from natural language to bash - Amazon Q Developer

Translating from natural language to bash

The q translate command lets you write a natural language instruction such as “copy all files in my current directory to Amazon S3”. Amazon Q will then translate it to an instantly executable shell code snippet. The q translate command is useful in those common situations where the correct bash syntax is easy to forget. Examples include reversing a git commit, finding strings inside files with grep, or compressing files with tar.

To get started, run either of the following

  • q translate prompt

  • # prompt

To opt out of using # to invoke Amazon Q, go to Settings -> Translate and toggle off Hashtag substitution.

Amazon Q interface showing Translate feature and Hashtag Substitution setting toggle.