dizipal-cli
v0.1.3
Published
CLI tool for DizipalTV
Downloads
14
Maintainers
Readme
Dizipal CLI
A CLI tool to find the most up-to-date address of Dizipal directly from the terminal.
Table of Contents
Features
- Find the latest Dizipal address with a simple command:
dizipal find --latest
. - Save the latest Dizipal address as an environment variable:
$DIZIPAL
.
Installation
[!IMPORTANT]
You must have the latest LTS version of Node.js installed on your system. To check if it is installed, enter the following command in your terminal:node --version
If you see a version number, then Node.js is installed on your system (e.g.,
v20.17.0
).
Open your terminal and enter the following command to install dizipal-cli
globally:
npm install --global dizipal-cli
Usage
[!NOTE]
Versionv0.0.1
contains a single utility command:find
.
Thefind
command searches for the latest Dizipal address and saves it as an environment variable ($DIZIPAL
) if you are not using a Windows device.
Find the latest Dizipal address using the API.
dizipal find --latest
or
dizipal find -l
Start searching for the latest address from https://dizipal730.com and continue sequentially, e.g., https://dizipal731.com.
dizipal find --url https://dizipal730.com
or
dizipal find -u https://dizipal730.com
Find the latest address using a custom API endpoint and look for the currentSiteURL key in the JSON response.
dizipal find --api https://example.com/api --latest
or
dizipal find -a https://example.com/api -l
Contributing
We welcome contributions! Please follow these steps to contribute:
- Fork this repository.
- Create a new branch:
git checkout -b feature/your-feature
. - Commit your changes:
git commit -m 'Add new feature'
. - Push to your branch:
git push origin feature/your-feature
. - Open a Pull Request.
License
This project is licensed under the MIT License.
Contact
For questions or suggestions, please email us at [email protected].