DEV Community

Cover image for Introducing Caliex: The Ultimate CLI Tool for Github Repository Management
Devanshu-17
Devanshu-17

Posted on

Introducing Caliex: The Ultimate CLI Tool for Github Repository Management

What I built

Introducing Caliex, an innovative command-line tool that simplifies the process of managing Github repositories. Caliex is designed to empower developers and streamline their workflows.

Caliex provides a fast and efficient way to manage Github repositories, without ever leaving the command line. Its seamless integration with Github API enables it to perform CRUD operations with ease, thus providing users with the power to handle multiple repositories simultaneously with simple and straightforward commands.

By building Caliex, I aimed to address the pain points developers often encounter when managing Github repositories manually. Caliex eliminates the need for manual navigation to the Github website, providing users with a smooth and hassle-free experience.

Category Submission:

Wacky Wildcards

App Link

caliex - npm

A simple CLI to interact with Github REST API. Latest version: 0.0.2, last published: 7 days ago. Start using caliex in your project by running `npm i caliex`. There are no other projects in the npm registry using caliex.

favicon npmjs.com

Screenshots

Image: Commands for Caliex 👇

Caliex Commands

Caliex Working

Image: Setting the Github Access token 👇

Setting the Github Access token

Image: Listing all the Repositories 👇

Listing all the Repositories

Image: Creating a Repository with Readme file and a License 👇

Creating a Repository with Readme file and a License

Image: Deleting a Repository 👇

Deleting a Repository

Description

Caliex was built to simplify Github repository management for developers. With Caliex, users can create repositories with a single command, set an access token to authenticate their Github account, and delete repositories without having to navigate through the Github UI.

Link to Source Code

GitHub logo Devanshu-17 / Caliex

A simple package developed using NodeJs and Github API in order to interact with Github right from the terminal

Caliex

A simple package developed using NodeJs and Github API in order to interact with Github right from the terminal

app-screen

npm   GitHub release (latest by date)

Features

  • Create and Delete Github Repositories right from your terminal
  • Additional option to specify different types of License

Prerequisites:

  1. Install git
  2. create a ~/.bash_profile in your Home Directory

Installation

Install via NPM:

npm install caliex
Enter fullscreen mode Exit fullscreen mode

Usage:

caliex <command> [options]
Enter fullscreen mode Exit fullscreen mode

Commands:

- Set your Github access token

  caliex set-token <token>           
Enter fullscreen mode Exit fullscreen mode

- Create a new Github repository

  caliex create-repo <name>          
Enter fullscreen mode Exit fullscreen mode
  • You can also use the "-r" and "-l" option to create a readme and license file respectively:
  caliex create-repo <name> -r -l <license_name>
Enter fullscreen mode Exit fullscreen mode

- List all Github repositories

  caliex list-repos                  
Enter fullscreen mode Exit fullscreen mode

- Delete a Github Repository

  caliex delete-repo <owner> <repo>
Enter fullscreen mode Exit fullscreen mode

- Get Github Repository URL

  caliex get-repo-url <repo_name> 
Enter fullscreen mode Exit fullscreen mode

Options:

  -v, --version  Show version number                                   [boolean]
  -l, --license
…
Enter fullscreen mode Exit fullscreen mode

Permissive License

MIT License

Background (What made you decide to build this particular app? What inspired you?)

As someone who prefers working on the command-line interface, I found it tiring to go to the Github site every time I needed to create or delete a repository, and then switch back to the CLI for git commands. This led me to create Caliex, a command-line tool that allows me to perform all these tasks from the comfort of my terminal.

Caliex makes it easy to list, create, and delete Github repositories without ever leaving the CLI. It utilizes the Github API to fetch repository information and perform CRUD (create, read, update, delete) operations on them.

If you're someone who works on Github often and prefers working from the command-line, Caliex can save you a lot of time and effort. You can find the source code on Github and install it easily from NPM registry.

How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?)

Building Caliex was an exciting opportunity for me to learn about REST APIs and how to interact with Github's API. I developed my knowledge of Node.js and CLI tools and became proficient in creating interactive command-line interfaces with libraries such as Inquirer.js.

During the development of Caliex, I utilized GitHub Codespaces as my development environment instead of an offline terminal. This allowed me to build the entire application online, eliminating the need for local development environments. I learned how to set up my development environment with the necessary dependencies and configurations, as well as how to use the built-in VS Code editor to improve my workflow. Besides, managing multiple environments for different branches of the application's codebase became easy with Codespaces, and I learned new skills related to managing my development environment within the Codespaces.

I also utilized Github Actions to automatically publish new versions of Caliex to the NPM registry, whenever I release a new version on Github

Overall, GitHub Codespaces proved to be an efficient and effective way to build Caliex. Not only did it provide a convenient development environment, but it also helped me become proficient in developing code in the cloud. I intend to continue using GitHub Codespaces for future projects to take advantage of its features and benefits.

Additional Resources/Info

For more information on how to set up and use Caliex, check out the Caliex GitHub Repository. I encourage you to contribute, provide feedback, and help us improve this invaluable tool for developers. Together, we can make software development more secure and efficient! 🚀

Top comments (2)

Collapse
 
rde3 profile image
RDE3

That's great! It will certainly save me much time

Collapse
 
devanshu17 profile image
Devanshu-17

Thank you :)