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

@oclif/plugin-update

Package Overview
Dependencies
Maintainers
2
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/plugin-update

[![Version](https://img.shields.io/npm/v/@oclif/plugin-update.svg)](https://npmjs.org/package/@oclif/plugin-update) [![Downloads/week](https://img.shields.io/npm/dw/@oclif/plugin-update.svg)](https://npmjs.org/package/@oclif/plugin-update) [![License](htt

  • 4.2.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
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 07 Apr 2024

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