# EmbeddedCLI **Repository Path**: mirrors_AndreRenaud/EmbeddedCLI ## Basic Information - **Project Name**: EmbeddedCLI - **Description**: Simple C api for providing a readline-style prompt on an embedded system. Useful for Command Line Interface style interactions - **Primary Language**: Unknown - **License**: 0BSD - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-31 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Embedded CLI Embedded CLI Logo Embedded CLI is a library for providing usable command line interfaces for embedded systems. It supports history and command line editing. It is designed to use no dynamic memory, and provide an easy to integrate API. [![GitHub Actions](https://github.com/AndreRenaud/EmbeddedCLI/actions/workflows/build_and_test.yml/badge.svg?branch=main)](https://github.com/AndreRenaud/EmbeddedCLI/actions) [![License: BSD 0-Clause](https://img.shields.io/badge/License-BSD%200--Clause-blue.svg)](LICENSE) ## Features * Cursor support (left/right/up/down) * Searchable history (^R to start search) * No dynamic allocation * Base structure has a fixed size, with compile time size limitations * Comprehensive test suite, including fuzz testing for memory safety * Command line comprehension * Support for parsing the command line into an argc/argv pair * Handling of quoted strings, escaped characters etc... Works well in conjunction with the [Simple Options](https://github.com/AndreRenaud/simple_options) library to provide quick & easy argument parsing in embedded environments. Using this combination makes it simple to create an extensible CLI interface, with easy argument parsing/usage/help support. ## Platform support & requirements Embedded CLI makes very few assumptions about the platform. Data input/output is abstracted in call backs. Examples are provided for a posix simulator, STM32 No 3rd party libraries are assumed beyond the following standard C library functions: * memcpy * memmove * memset * strcmp * strlen * strncpy * strcpy All code is C99 compliant. ## Memory usage Memory usage is configurable by adjusting the internal buffering. In the default configuration, it will consume approximately 1.5kB of RAM, most of which is in the history buffer, and 2kB of code space (ARM Thumb2). The easiest way to reduce memory consumption is to drop the support for the history buffer. In this configuration it will consume approximately 200B of RAM, and approximately 1kB of code space (ARM Thumb2). ## Thanks Icon `terminal` by Ashwin Dinesh from the Noun Project