Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The inputd-cli is a command-line tool that enables you to programmatically interact with Fire TV devices and Vega Virtual Devices through simulated user input and system controls. This tool is essential for automated testing, device debugging, and development workflows where you need to control device behavior without physical interaction.

Key capabilities

  • Input simulation - Sends button presses, touch events, swipes, and mouse interactions
  • Text input - Injects text strings directly into the device
  • Screen interaction - Retrieves screen dimensions and performs gesture-based navigation
  • Automation support - Provides console mode for scripting and batch operations

Prerequisites

  1. Establish VDA connection through USB or TCP/IP. See instructions in Enable VDA over TCP/IP page.
  2. Obtain appropriate security permissions for your access level. Different security contexts provide varying levels of access to inputd-cli functionality. Check your current permissions to understand which commands are available in your environment.
  3. Enable developer mode on Fire TV device (recommended). See instructions in Register Fire TV Stick for Developer Mode page.
  4. For Vega Virtual Device users, enable developer mode for full command access: a. Connect to the virtual device shell:
    b. Enable developer mode:
    Default (limited) mode shows only: get_camera_cover_open_close, get_mic_state, get_screen_size Developer mode (full functionality) shows all commands: touch, swipe, button_press, send_text, etc.

Access through VDA shell

The tool comes built into the Fire TV device system and requires no separate installation. You can access inputd-cli through the VDA shell environment:
Example:

Key code reference

You can find the list of key codes at linux-event-codes.h. To send a back key press:
Common navigation keys: KEY_DOWN, KEY_UP, KEY_ENTER, KEY_LEFT, KEY_RIGHT. To send text input:

Change privacy state

To control camera and microphone privacy settings on your Fire TV device at a software level, use:

Use console mode

To establish a persistent connection for multiple commands without reconnecting each time, use:
Example usage:

Automate input with scripts

To avoid creating multiple client connections, chain commands together. For example, to hold and repeat button presses, use:
This example holds the Left button, presses the Down button 30 times every 0.5 seconds (15 seconds total), then releases the Left button and exits.

Press multiple buttons simultaneously

To simulate pressing multiple buttons at the same time, hold them, wait, then release. For example:
This holds the Back and Menu buttons for 3 seconds, then releases both buttons and exits.
Last modified on October 7, 2025