In this post I will explore how theĀ image support feature in Amazon Q Developer Command Line Interface (CLI) transforms development workflows. Q Developer CLI recently added image support, expanding its capabilities to process visual information and enhancing developer productivity. This new feature allows developers to interact with diagrams, architecture blueprints, and other visual assets directly through the command line.
Modern software development increasingly relies on visual representations to communicate ideas. For example, architecture diagrams illustrate system components and their interactions, while entity-relationship diagrams map out database structures. Translating visual assets into working code is usually a manual, error-prone process of interpretation and implementation.
The new image support in Q Developer CLI bridges this gap by allowing developers to provide images directly to the Q Developer CLI agent for analysis. Iām excited to use this feature to transform my architecture diagrams from scrappy, hand-drawn ideas to polished design documents, and then to infrastructure as code. I look forward to applying it in various use cases, whether Iām getting started on a new project or streamlining my daily workflows.
At the time of launch, the Q Developer CLI supportsĀ JPEG, PNG, WEBP, and GIF image formats along with the ability to upload 10 images per request. You must use the latest version (1.10.0 or above) of Q developer CLI to enjoy the image support feature in Q Developer CLI.Ā Use this guide to upgrade or install the latest version.
I will use the following four scenarios as examples to demonstrate the benefit of image support for Q Developer CLI.
Use-case 1: Generating infrastructure as code from an architecture diagram
The following diagram depicts an application that resizes images. It includes a source Amazon S3 bucket into which a user uploads an image, and an AWS Lambda function that resizes the image and stores it in a destination S3 Bucket. I can now convert architecture diagrams to code using Q Developer CLI.

Architecture for an image resizing application
In the following screenshot, I asked the Q Developer CLI to āPlease provide me with a reference terraform template using best practicesā. Note that dragging and dropping the image into the CLI will add the path to your prompt.

CLI with Terraform code generated by Q Developer
The prior image shows a portion of the response that Q Developer CLI has generated.
Q Developer responds with the terraform template required to get started with building the image resizing application. Q Developer CLI analyzed the image, identified the components and their relationships, and generated the corresponding Terraform code. While not shown in the image, the response included the Lambda functionās code in Python and the IAM permissions needed for the Lambda function.
Previously, transforming this diagram into infrastructure as code would require me to manually interpret each component and write the corresponding configuration. With image support, I can now automate much of this process and refine the generated code through a conversation with Q Developer. I can then have a conversation with Q Developer to refine the generated code, ask questions about specific implementation details, or request modifications based on additional requirements and output the code to a .tf file.
Use-caseĀ 2: Converting ER diagrams to database schemas
For our second scenario, letās consider a use case where Iām a part of a data modeling team developing a course management software for universities. I have created an entity-relationship (ER) diagram for their core data structures. I can now use Q developer to help me convert the ER diagram to SQL.

Course management Entity Relationship Diagram
In the following screenshot, I asked the Q Developer CLI to use the ER diagram to create the database schema.

CLI with user prompt and SQL generated by Q Developer

CLI with SQL generated by Q Developer
The prior image shows the response the that Q Developer CLI generated.
Q Developer analyzed the diagram, identified entities, attributes, and relationships, then generated the appropriate SQL code for creating the database schema.
After Q Developer produces the results, I can refine this schema through a conversation with Q Developer by requesting changes to string lengths, indexes, etc., or requesting explanations of design decisions.
Use-case 3: Converting a hand drawn image to a design document
Consider a scenario where I have brainstormed an idea on paper and I would like to share this with my team. In the following image, I have hand drawn the order flow for a website. When the website user orders books from the website, the application updates inventory, then calls the payment and delivery actions. I can now use the Q Developer CLI to draft documentation from the hand drawn idea.

Hand drawn order flow for a website
In the following example, I asked Q DeveloperĀ to write a design document using this image as a reference.

CLI with user prompt and response generated by Q Developer
The above screenshot shows that, Q Developer first read the image and understood the content from the hand drawn diagram image.

CLI with the response generated by Q Developer
The prior screen shot is a portion of the response that Q Developer CLI has generated.
Q Developer converted the idea into a design document including system architecture, process flow, data model, functional requirements, and technical requirements. I can also ask Q Developer to output the context to a .md file. This reduces the amount of time going from idea to execution and streamlines document writing.
Use-case 4: Building a UI mockup/wireframe from a screen shot
Letās say, I want to get started with building a User Interface (UI) from my design document from use-case 3. I can provide a reference image to Q Developer for generating initial wireframes for my UI.

Sample book sales website home page
In this example, I asked Q Developer to help generate a front-end for a new website in Vue.js

CLI with the user prompt and response generated by Q Developer

CLI with Vue.js code generated by Q Developer
The prior image shows a portion of the Vue.js code generated by the QĀ Developer CLI to re-produce the front-end of the website in the screenshot. Once I verify the code, I can then ask Q Developer CLI to create these files locally.
This approach reduces the error-prone aspects of wireframe creation, allowing me to focus on creative design decisions instead of repetitive setup tasks. In this way, I can accelerate development cycles, ensure consistency across components, and provide a foundation that can be easily customized to meet specific project requirements.
Additional possibilities:
Apart from the prior examples, Q Developer CLI can analyze many types of images, including:
- Flow charts and process diagrams
- Class diagrams for object-oriented design
- Network topology diagrams
- Screenshots of error messages or application states
This versatility makes Q Developer CLI a powerful tool for various development workflows.
Conclusion:
The addition of image support to Amazon Q Developer CLI represents a significant step forward in bridging the gap between visual and textual representations in software development. By allowing me to work with diagrams and other visual assets directly from the command line, Amazon Q Developer improves my efficiency in translating design into implementation, reducing errors and accelerating development cycles. I encourage you to explore this new capability and discover how it can enhance your development workflow.
To learn more about Q Developer and its capabilities, visit the documentation.
About the Author:Ā
Keerthi Sreenivas Konjety
Keerthi Sreenivas Konjety is a Specialist Solutions Architect for Amazon Q Developer, with over 3.5 years of experience in AI, ML and Data Engineering. Her expertise lies in enabling developer productivity for AWS customers. Outside work, she enjoys photography and AI content creation.