2.0.0 • Published 2 years ago

commute v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Commute

A simple command-line tool for syncing development database.


Install

npm install -g commute

OR

npm link -g (from within this repo locally)

Setup

Commute expects to find a YAML file at ~/.commute.yml that defines the connection settings for each project.

sources:
  staging:
    host: 123.456.789.0
    u: remoteuser
    secure: true
  mysql-local:
    host: 127.0.0.1
    db:
      u: root
      p: root
        
my-project:
  remote:
    source: staging
    db:
      name: remote-db-name
      u: dbuser
      p: dbpass

  local:
    source: mysql-local
    db:
      name: local-db-name

Use

Run commute out of any project directory:

commute <project> <operation>

project: The name of the project to work with, should match a top-level key in ~/.commute.yml

operation: Should be one of down, or dump

Operations

down

Creates a dump of the remote database and imports it into the local database.

dump

Creates a dump of the remote database and saves it locally without importing.

2.0.0

2 years ago

1.0.0

3 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.0

9 years ago

0.0.1

10 years ago