While mature and time-honored, not modern, utilities like sed and envsubst go a long way to managing any config. Making a "modern cli" application that wraps existing functions is like giving someone a fish, as opposed to teaching them to fish with stable and ubiquitously available tools.
Create entry (using a template and exported variables):
Create entry (using a template and exported variables):
Read entry (assuming the 4 line template): Update entry: Delete and CreateDelete entry (assuming the 4 line template):