Skip to content

Fungi CLI version output

Check the installed Fungi CLI's version output in updater and deployment tooling.

  • @fungi.computer/cli-version
  • v0.0.2
  • MIT

Fastest path

  1. Install

    Add it to your project with npm, pnpm, Yarn or Bun.

    TERMINAL
    npm install @fungi.computer/cli-version
  2. Read and check a CLI version

    Read the previous label for rollback, then check the current Fungi handshake.

    home.ts
    import {
    expectReportedVersion,
    reportedVersion,
    } from "@fungi.computer/cli-version";
    console.log(reportedVersion("Spore 0.5.0\n"));
    console.log(expectReportedVersion("fungi 0.7.0\n", "0.7.0"));