UNPKG

particle-cli

Version:

Simple Node commandline application for working with your Particle devices and using the Particle Cloud

23 lines (21 loc) 580 B
module.exports = ({ commandProcessor, root }) => { commandProcessor.createCommand(root, 'update-cli', 'Update the Particle CLI to the latest version', { options: { 'enable-updates': { boolean: true, description: 'Enable automatic update checks' }, 'disable-updates': { boolean: true, description: 'Disable automatic update checks' }, 'version': { description: 'Update to a specific version' } }, handler: (args) => { const UpdateCliCommand = require('../cmd/update-cli'); return new UpdateCliCommand().update(args); } }); };