DEV Community

Cover image for How to Develop an Interactive CLI with C# to Manage SendGrid Dynamic Email Templates
Dev Power
Dev Power

Posted on

1 1

How to Develop an Interactive CLI with C# to Manage SendGrid Dynamic Email Templates

I like developing my own CLIs and installing them using the dotnet tool command. I can then use them to make some manual tasks easier for myself. Recently I started playing with SendGrid Dynamic Email Templates. They have a great user interface but I wanted to do things programmatically.

I used CliFx before and was already familiar with how fast you can develop a CLI. The fun part of this project was to make the CLI interactive by using the Sharprompt library.

It basically works like this:
asciicast

If you're interested in expanding on it, you can find the source code here. It's open-source so feel free to clone and play around.

I also wrote a step-by-step article (quite long though) to explain how all the tools work together here

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay