The Termux:API add-on provides command line access to device API:s:

* Read and send sms messages from your terminal.
* Access device GPS location sensor from scripts.
* Pipe the result of commands into the device text-to-speech engine.
* Vibrate the device when something interesting happens.
* Access the system clipboard from shell scripts.
* List contacts from the system contact list.

Besides installing this app an additional package is required to install inside Termux:
$ apt install termux-api

See the following documentation about available API commands:
wiki.termux.com/wiki/Termux:API

NOTE: This is an add-on which requires that the main Termux app is installed to use.

From version Termux:API (fdroid version) 0.50.1:

Re-release of v0.50.0 with semantic versioned github release tag since APK attachment to release failed previously. Too late to do this without version bump since F-Droid has already detected v0.50.0 release.

Noticeable changes, except for various cleanup and "under-the-hood" improvements, include:

Thanks to all the contributors!

Variant
Arch
Version
DPI
(noarch)
Latest: 0.47 on February 25, 2021
(universal)
Latest: 0.50.1 on December 31, 2021
All versions
Termux:API (fdroid version) 0.50.1

Version:0.50.1

Uploaded:December 31, 2021 at 8:23AM UTC

File size:2.74 MB

Downloads:129

Termux:API (fdroid version) 0.49

Version:0.49

Uploaded:September 22, 2021 at 5:45AM UTC

File size:2.74 MB

Downloads:1,248

Termux:API (fdroid version) 0.48

Version:0.48

Uploaded:May 1, 2021 at 2:32PM UTC

File size:2.74 MB

Downloads:466

Termux:API (fdroid version) 0.47

Version:0.47

Uploaded:February 25, 2021 at 5:38AM UTC

File size:2.79 MB

Downloads:606