Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oclif/plugin-update

Package Overview
Dependencies
Maintainers
3
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-update

@oclif/plugin-update ====================

  • 1.3.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
142K
decreased by-51.88%
Maintainers
3
Weekly downloads
 
Created

What is @oclif/plugin-update?

@oclif/plugin-update is a plugin for the Oclif CLI framework that provides functionality for updating CLI applications. It allows developers to easily integrate update commands into their CLI tools, ensuring that users can always have the latest version of the tool.

What are @oclif/plugin-update's main functionalities?

Check for Updates

This feature allows the CLI tool to check for updates. The `UpdateCommand` class from `@oclif/plugin-update` is extended to create a custom update command that can be run to check for updates.

const { Command } = require('@oclif/core');
const { UpdateCommand } = require('@oclif/plugin-update');

class MyUpdateCommand extends UpdateCommand {
  async run() {
    await super.run();
    this.log('Checked for updates!');
  }
}

module.exports = MyUpdateCommand;

Run Update

This feature allows the CLI tool to perform an update. The `UpdateCommand` class is used to run the update process, ensuring that the CLI tool is updated to the latest version.

const { Command } = require('@oclif/core');
const { UpdateCommand } = require('@oclif/plugin-update');

class MyUpdateCommand extends UpdateCommand {
  async run() {
    await super.run();
    this.log('CLI tool updated to the latest version!');
  }
}

module.exports = MyUpdateCommand;

Other packages similar to @oclif/plugin-update

Keywords

FAQs

Package last updated on 26 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc