Introduction

Meet tj, a tool that helps you create new local WordPress development sites, manage existing sites, and deploy them, all from the command line.

tj handles all of the hard stuff: creation of a local development environment, managing local and remote WordPress sites, and the most annoying part of all, actually deploying those sites. Say goodbye to MAMP!

tj is built on top of tried and true open source libraries such as Capistrano for deployment, Vagrant for local development, and even a little bit of WP-CLI for database migration.

Requirements

tj requires Vagrant and VirtualBox to be able to create virtual machines for local development. Please download and install both of these before getting started. If you plan on using tj for deployments, you should also ensure that your remote servers have WP-CLI installed in order for tj to be able to handle database migration.

I recommend one of the latest versions of Ruby MRI (2.2, 2.1, 2.0). tj requires at least MRI 1.9.3. For the full report, check out the Travis CI build status, where I test against an array of Ruby interpreters.

I also recommend you set up SSH-keys for GitHub. Internally, tj uses git clone with SSH URLs, so things might break if you don't have your keys set up properly.

Installation

gem install theme-juice

NAME

tj-delete - Delete a project

SYNOPSIS

tj delete [--flag=arg] [--flag]

DESCRIPTION

Removes a project from your development environment. You will go through a series of prompts to delete a project. This will only remove files that were generated by tj(1) e.g. the database setup, DNS setup, and other project configuration files.

It will not touch your local folders that were synced to the VM.

GLOBAL OPTIONS

-n, --name=string

Name of the project

-u, --url=url

Development URL for the project

--drop-db, --db-drop

Drop the project's database

--restart-vm, --vm-restart

Restart the VM after deletion