jetrails / jrctl

Command line tool to help interact with our API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Commands To Control Database

null93 opened this issue · comments

jrctl database list

// List databases and users associated with that database

jrctl database create <db_name>

// Output database name in quiet mode

jrctl database delete <db_name>

// Must delete users too?
// Output database name in quiet mode

jrctl database user-create <user-name> -d <db_name>

// Output user name and password in quiet mode

jrctl database user-password <user-name> -d <db_name>

// Reset user password. quiet mode returns only pass

jrctl database user-delete <user-name> -d <db_name>

// Output user name quiet mode

Allow user to use tag filters to find matching server. Need to match exactly one server in order to run any of these commands.

jrctl database user-create magento-user -d <db_name> // from: localhost
jrctl database user-create magento-user -d <db_name> --from-any // from: %
jrctl database user-create magento-user -d <db_name> --from // from: any ipv4