https://github.com/leonardoennes/sky-cli
Sky CLI is a powerful and versatile command-line interface designed for developers who need to streamline their workflow.
https://github.com/leonardoennes/sky-cli
app-backend cli cli-app comand-line developer-tool open-source project
Last synced: about 2 months ago
JSON representation
Sky CLI is a powerful and versatile command-line interface designed for developers who need to streamline their workflow.
- Host: GitHub
- URL: https://github.com/leonardoennes/sky-cli
- Owner: LeonardoEnnes
- License: mit
- Created: 2024-09-17T04:57:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-25T03:13:28.000Z (12 months ago)
- Last Synced: 2025-07-25T06:29:34.664Z (3 months ago)
- Topics: app-backend, cli, cli-app, comand-line, developer-tool, open-source, project
- Language: JavaScript
- Homepage:
- Size: 2.81 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sky-cli
Sky CLI is a powerful and versatile command-line interface designed for developers who need to streamline their workflow. It provides a comprehensive suite of tools for managing APIs, handling file operations, manipulating data, and using templates to simplify repetitive tasks. Whether youβre automating file operations, making API requests, or processing data, sky-cli has you covered!## Table of Contents
1. [Quick Overview](#-Quick-Overview)
2. [Features](#-features)
- [Template Creation](#template-creation)
- [File Management](#file-management)
- [API Interaction](#api-interaction)
- [Data Manipulation](#data-manipulation)
3. [How to Install the CLI](#how-to-install-the-cli)
4. [How to Use the CLI](#how-to-use-the-cli)
5. [Project Structure](#project-structure)## Quick Overview:
---
### π Features
1. #### Template Creation
- **Project Structure Generation:** Quickly generate project structures for popular frameworks or libraries with initial files (e.g., index.js, package.json).
- **Custom Templates:** Create and store personalized templates to speed up project generation.
- **Configurable Templates:** Customize templates during creation, such as including/excluding dependencies or configuring linters and test environments.2. #### File Management
- **File and Folder Listing:** Interactively list files and directories with filters for file type, size, or creation date.- **File Operations:** Move, copy, rename, and delete files or directories. An interactive mode confirms potentially destructive actions (like deletions).
- **Advanced Search:** Search inside files using regular expressions or by metadata such as creation or modification date.
- **File Comparison:** Compare the contents of two files, useful for developers needing to track changes between file versions.
3. #### API Interaction
- **HTTP Requests:** Perform HTTP requests (GET, POST, PUT, DELETE) with support for custom headers, authentication, and JSON payloads.- **API Monitoring:** Periodically ping API endpoints to track status, response times, and potential errors.
- **API Logs:** Store and view logs of previous API requests for debugging and analysis.
4. #### Data Manipulation
- **Format Conversion:** Convert between data formats like JSON, XML, and CSV.## How to install the CLI
**Step 1:** Clone this repository
```
git clone https://github.com/LeonardoEnnes/sky-cli.git
```**Step 2:** Install the dependencies
```
npm install
```## How to use the CLI
**Step 1:** Go to the repository folder, open the terminal, and navigate to the src folder.
```
cd src
```**Step 2:** Write this command to start the CLI:
```
node index.js
```**Step 3:** Select a command from the list. You will be prompted with an autocomplete list of commands. Start typing the command you want to execute and select it from the list.
#### The available commands are:
- help
- create-template
- request
- monitor
- logs
- read-file
- write-file
- delete-file
- list-files
- compare-files
- search
- convert-format
**Step 4:** If you need instructions on how to use certain commands, we recommend using the **help** command. This command will provide you with instructions on how to properly use the other commands.
## Project Structure
Here is the structure of the **sky-cli** project:```
sky-cli/
βββ src/
β βββ index.js # Main entry point for the CLI
β βββ utils/ # Utility functions and classes
β β βββ api.js # API interaction and logging
β β βββ cli.js # CLI command handling
β β βββ fileManager.js # File operations management
β β βββ formatConverter.js # Data format conversion
β β βββ init.js # Initialization and welcome message
β β βββ log.js # Logging utility
β β βββ search.js # File searching functionality
β β βββ templateManager.js # Template management
β βββ templates/ # Directory for storing templates
β βββ landing-page-template.json # JSON template for landing page
β βββ feature-toggle-template.json # JSON template for feature toggles
β βββ ... # Other templates
βββ package.json # Project metadata and dependencies
βββ README.md # Project documentation
```