node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


# Radiate [![Build Status](]( [![NPM version](](

development task runner

Run devop tasks, deploy code, and run commands on local and remote machines.



npm install --global radiate

Use the command radiate to run the tasks in your radiate.js file.

radiate.js file

A radiate file exports a main function which takes one argument, the radiate instance.

'use strict';
module.exports = function(r) {
  // Set config values 
  // String, value 
  r.set('env', 'development');
  // => r.config.env == 'development' 
  // String, true 
  // => r.config.devops == true 
  // String, Object 
  r.set('development-server', {
    host: '',
    user: 'root',
    source: ['./*'],
    destination: '/var/www/app',
    pass: 'test',
    flags: 'avz',
  // Execute a shell command on the local machine with options 
  r.exec('ls', ['-al']);
  // Execute pass through function 
  r.exec(function() {
    // Any functions in a task 
    // Ex: 
  // deploy (push) code to a remote server 
  // You must set the config for the server prior to the `deploy` command 
  // this will use the config set in `r.set('<server name>', {})` 
  // Ex: `r.set('development-server', {host: ''})` 
  // Run commands on the remote server 
  // Also requires the config set in `r.set('<server name>', {})` 
  r.remote('development-server', 'ls -al /tmp', function() {
    // do stuff 


Default task: $ radiate Radiate will run the main exported function by default

module.exports = function(r) {
  // r.exec ... 

Individual tasks: $ radiate deploy Radiate will run any task names which are exported

module.exports = {
  build: function(r) {
    // r.exec('build-assets', 'gulp'); 
  deploy: function(r) {
    // r.deploy('production'); 

set(String, String || Object)

This also sets the server config for the commands deploy and remote

Set a string to true

// => == true 

Set a string to a value

r.set('name', 'value');
// => == 'value' 

Set a string to an object

r.set('name', {key: 'value'});
// => == {key: 'value'} 

Setting servers for deploy or remote tasks:

rsync is used to transfer the files. simple-ssh is used for the SSH sessions.

Example with Custom ssh keys/locations. The param shell allows you to add pure SSH Rsync commands as rsync(1) lists under option --rsh or -e

r.set('development-server', {
  host: '',
  user: 'root',
  key: fs.readFileSync('/home/root/.ssh/id_rsa'),
  source: ['./*'],
  destination: '/tmp/',
  shell: 'ssh -i /home/root/.ssh/id_rsa -oIdentitiesOnly=yes -oStrictHostKeyChecking=no',
  flags: 'avz',

Refer to their docs for more complex connection settings.

exec(String, Array, Function)

Execute a shell command on the process machine (local)

r.exec('ls', ['-al'], function () {

deploy(String, Object, Function)

Deploy to the specified server via config This uses the preset server config from #set

r.deploy('development-server', function(r) {

remote(String, Object || String, Function)

Execute a shell command on the remote machine as defined by the server name in the config.

Second param as String()

r.remote('development-server', 'ls -al', function(r) {
  // do stuff 

Second param as Object({cmd: })

r.remote('development-server', {cmd: 'ls -al'}, function(r) {
  // do stuff 

License MIT