@cli-web-cloner/cloner
v1.1.3
Published
CLI to clone, deploy websites and add domains
Downloads
191
Readme
cli-web-cloner
A simple CLI tool to make your local web development project deployment a breeze.
Table of Contents
prerequisites
Prerequisites
A few things you need to have installed and set up before you can use this tool.
Terminal
The tool is a command-line tool, so you need to have a terminal to run it. You can use the terminal that comes with your operating system, or you can use a third-party terminal like Hyper. For more information on how to use the terminal, you can check out this tutorial.
Node.js
This tool is built with Node.js, so you need to have it installed on your system. You can download it from the official website. Follow the instructions on the official website to install it on your system.
NPM
npm is the package manager for Node.js. It comes with Node.js, so you don't need to install it separately.
Vercel
To use this tool the user needs to have a Vercel account. You can sign up for a free account on the Vercel website. This tool uses Vercel to deploy the project to the web.
TransIp
To use this tool the user needs to have a TransIp account. You can sign up for a free account on the TransIp website. For domain purchase and configuration for TransIp domains a user needs to create a personal API token.
How to create a personal API token
To create this token log in to the TransIp dashboard and navigate to the control panel > settings > API. There the user needs to enable the API status, after enabling the API status the user can create a personal API token. This can be done by going to the Access tokens section and creating a new 1 month valid token. ⚠️ Warning: This token is only valid for 1 month, after that the user needs to create a new token. And set the new token.
Installation
To install this tool, you can use the following command:
npm install -g cli-web-cloner
This will install the tool globally on your system, so you can use it from anywhere.
Usage
To use this tool, you can run the following command:
cloner
This will start the tool, and you will be asked to enter the URL of the website you want to clone.
Commands
The cloner
CLI tool provides several commands to help you manage your web projects and domains. Below is a detailed
guide on how to use each command.
1. test
This command checks if the CLI tool is working correctly.
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner test
- You should see a message saying "Test successful".
2. init
This command sets up a new project for you.
- How to Use:
- Decide on a name for your project.
- Open your terminal.
- Type the following command, replacing
<projectName>
with your project name, and press Enter:
cloner init <projectName>
- If you want to use a specific framework (like React or Vue), add
-f <frameworkName>
to the command.
3. link
This command links an existing project.
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner link
- If you want to skip confirmation, add
-y
to the command.
4. list
This command lists all your projects.
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner list
- If you want to update the list, add
-u
to the command.
5. build
This command builds your project, making it ready for deployment.
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner build
- If you want to build for production, add
-p
to the command.
6. pull
This command pulls the latest version of your project.
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner pull
7. auth
This command helps you manage your Vercel account authentication.
Subcommands:
login
- How to Use:
- Open your terminal.
- Type the following command, replacing
<email>
with your email address, and press Enter:
cloner auth login <email>
- How to Use:
logout
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner auth logout
- How to Use:
whoami
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner auth whoami
- How to Use:
status
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner auth status
- How to Use:
8. clone
This command clones a website project.
- How to Use:
- Open your terminal.
- Type the following command, replacing
<projectName>
with your project name, and press Enter:
cloner clone <projectName>
9. transip
This command group helps you manage your Transip API token.
Subcommands:
set-token
- How to Use:
- Open your terminal.
- Type the following command, replacing
<token>
with your Transip API token, and press Enter:
cloner transip set-token <token>
- How to Use:
get-token
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner transip get-token
- How to Use:
update-token
- How to Use:
- Open your terminal.
- Type the following command, replacing
<token>
with your Transip API token, and press Enter:
cloner transip update-token <token>
- How to Use:
delete-token
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner transip delete-token
- How to Use:
10. domain
This command group helps you manage domains.
Subcommands:
check
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain check <domain>
- How to Use:
list
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner domain list
- How to Use:
buy
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain buy <domain>
- How to Use:
Vercel Domain Subcommands:
add
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
and<project>
with the domain and project names, and press Enter:
cloner domain vercel add <domain> <project>
- How to Use:
buy
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain vercel buy <domain>
- How to Use:
inspect
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain vercel inspect <domain>
- How to Use:
list
- How to Use:
- Open your terminal.
- Type the following command and press Enter:
cloner domain vercel list
- How to Use:
move
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
and<scopeName>
with the domain name and scope name, and press Enter:
cloner domain vercel move <domain> <scopeName>
- How to Use:
remove
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain vercel remove <domain>
- How to Use:
transfer
- How to Use:
- Open your terminal.
- Type the following command, replacing
<domain>
with the domain name, and press Enter:
cloner domain vercel transfer <domain>
- How to Use:
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Acknowledgments
Author
- Joeri Schenk
- GitHub