CLI tool for authmagic - reusable, expandable authorization service which could be used for project initialization, core/plugins/theme installation..
Creates an empty configuration file.
-e, --example - creates predefined example configuration file, so you could try authmagic quickly.
Installs module. Similar to npm install. If name wasn't provided it will install everything based on the configuration file. If no source provided would check the module via npm.
name - package name
source - location of the package (git or filesystem)
-p, --plugin - Uninstall plugin
-c, --core - Uninstall core
-t, --theme - Uninstall theme
Uninstalls module. Similar to npm uninstall.
name - package name
-p, --plugin - Uninstall plugin -c, --core - Uninstall core -t, --theme - Uninstall theme
Uninstalls all plugins and removes configuration file.
authmagic-cli allows to boot up authorization service with a command line.
module.exports = {
"core": {
"name": "authmagic-timerange-stateless-core",
"source": "../authmagic-timerange-stateless-core"
},
"plugins": {
"authmagic-email-plugin": {
"source": "../authmagic-email-plugin"
}
},
"params": {
"authmagic-email-plugin": {
"isTest": true,
"mailer": {
"auth": {
"user": "",
"pass": ""
},
"host": "smtp.ethereal.email",
"port": 587,
"secure": false
},
"from": "AuthMailer",
"subject": "Your Magic Link"
},
"authmagic-timerange-stateless-core": {
"duration": 300,
"key": "ad6de0e6c809b89b",
"sendKeyPlugin": "authmagic-email-plugin",
"expiresIn": 1200
}
},
"port": 3000,
"theme": {
"name": "authmagic-link-email-phone-bootstrap-theme",
"source": "../authmagic-link-email-phone-bootstrap-theme"
}
};
authmagic-cli is MIT licensed.
