Skip to content

A simple CLI tool to clone Git repositories and run setup commands.

License

Notifications You must be signed in to change notification settings

yisusjuarez/morty

Repository files navigation

Morty 🛠️

A simple CLI tool to clone Git repositories and run setup commands.

Installation

npm install -g morty

Usage

# Clone a repository and run setup commands
morty create my-project --repo https://github.com/user/template.git

# Skip setup commands
morty create my-project --repo https://github.com/user/template.git --skip-setup

Template Configuration

Add an optional morty.json file to your repository:

{
  "name": "My Template",
  "description": "A simple template",
  "commands": [
    "npm install",
    "npm run build"
  ]
}

Options

  • <project-name> - Name for your new project
  • --repo <url> - Git repository URL (required)
  • --skip-setup - Skip running setup commands
  • --verbose - Show detailed output
  • --quiet - Show only errors

How it works

  1. Clones the repository to a temporary directory
  2. Copies all files to your project directory (excluding morty.json)
  3. Runs the commands listed in morty.json (if present)
  4. Cleans up temporary files

License

MIT