Emailnator CLI : Gmail Generation and Consultation
Tags: npm, opensource, tooling, cli
Published: 2023-11-27 14:00:00

[![Substack Newsletter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qbg4qlzlytxbzbvj97ia.png)](https://benoitpetit.substack.com/subscribe)

Hello, it's Ben 😊, and I've created a small CLI that I wanted to share with you, so here we go!

## **Introduction**

Have you ever felt the need to create a temporary email address in an instant, whether for signing up on a website, receiving a confirmation code, or testing a service? Are you looking for a simple and efficient way to manage your emails without opening your browser? If so, then Emailnator is the perfect tool for you!

## **What is Emailnator CLI?**

Emailnator is an unofficial command-line interface (CLI) for Emailnator.com, a free service for generating temporary emails. With Emailnator CLI, you can create and manage multiple email addresses directly from your terminal, accessing your inbox and messages with just a few commands.

## **Advantages**

In addition to its basic features, Emailnator CLI offers several advantages, including:

- **Privacy Protection:** Disposable email addresses generated by Emailnator are associated with different IP addresses, ensuring the confidentiality of your online identity.
- **Convenience:** Emailnator allows you to check your emails without opening your browser, a handy feature when you're already immersed in your terminal.
- **Simplicity:** Installing and using Emailnator is straightforward, even for novice users.

## **Installation**

To install Emailnator CLI, make sure you have Node.js and NPM installed on your machine. If not, you can download them [here](https://nodejs.org/en/download/). Then, simply run the following command:

```bash
sudo npm install -g emailnator
```

After installation, you need to install the required dependencies by running the following command:

```bash
emailnator install
```

## **Usage**

The following commands are available for using Emailnator:

- **`emailnator generate-email`**: generates a new email address.
- **`emailnator generate-email-multi <number>`**: generates multiple email addresses.
- **`emailnator list`**: displays the list of generated email addresses.
- **`emailnator clear`**: clears the list of generated email addresses.
- **`emailnator inbox <email>`**: displays the inbox of a specified email address.
- **`emailnator message <email> <id>`**: displays the message of a given email address and ID.

### **Usage Examples**

Here are some examples of using Emailnator commands:

- To generate a new email address, run the following command:
    
    ```bash
    emailnator generate-email
    ```
    
- To generate 10 email addresses, use the following command:
    
    ```bash
    emailnator generate-email-multi 10
    ```
    
- To display the list of generated email addresses, run the following command:
    
    ```bash
    emailnator list
    ```
    
- To clear the list of generated email addresses, use the following command:
    
    ```bash
    emailnator clear
    ```
    
- To display the inbox of a specified email address, run the following command:
    
    ```bash
    emailnator inbox <email>
    ```
    
- To display the message of a given email address and ID, use the following command:
    
    ```bash
    emailnator message <email> <id>
    ```
    

## **Conclusion**

Explore Emailnator CLI, a tool that prioritizes privacy while efficiently generating and discreetly verifying emails. It safeguards your privacy, enhances time efficiency, and enables secure service testing. Give it a try and share your experience!

- NPM : [https://www.npmjs.com/package/emailnator](https://www.npmjs.com/package/emailnator)
- Github : [https://github.com/ethicalhcb/emailnator-cli/](https://github.com/ethicalhcb/emailnator-cli/)

See you later! Beπ ✨

---

> 🫶 If you appreciate my posts and would like to support my work, feel free to make a donation by clicking on the Stripe Sponsor link below or by scanning the QR code. [Stripe Link Sponsor](https://donate.stripe.com/00g6pJ6R19MJ15S7ss)

---

[![Stripe Sponsor](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ohkf7lrymedkort4w9iz.png)](https://donate.stripe.com/00g6pJ6R19MJ15S7ss)

--- 

👀 See me here : 

- [Substack](https://benoitpetit.substack.com/subscribe)
- [Mastodon](https://piaille.fr/@codingben) 
- [(X) Twitter](https://twitter.com/codingben_)
- [Github](https://github.com/benoitpetit)
- [NPM Packages](https://www.npmjs.com/~codingben)
- [benoitpetit.dev](https://benoitpetit.dev)
- [Dev.to](https://dev.to/benoitpetit)