MCPcopy Index your code
hub / github.com/oclif/oclif

github.com/oclif/oclif @4.23.24

repository ↗ · DeepWiki ↗ · release 4.23.24 ↗ · + Follow
255 symbols 679 edges 77 files 2 documented · 1% 4 cross-repo links updated today4.23.26 · 2026-07-05★ 9,56010 open issues
README

oclif CLI

Version Downloads/week License

🗒 Description

This is the oclif CLI for the Open CLI Framework, that supports the development of oclif plugins and CLIs.

See the docs for more information.

🚀 Getting Started Tutorial

The Getting Started tutorial is a step-by-step guide to introduce you to oclif. If you have not developed anything in a command line before, this tutorial is a great place to get started.

See Usage below for an overview of the oclif CLI.

📌 Requirements

Currently, Node 18+ is supported. We support the LTS versions of Node. You can add the node package to your CLI to ensure users are running a specific version of Node.

📌 Migrating from V1

If you have been using version 1 of the oclif CLI there are some important differences to note when using the latest version.

Breaking Changes

  • oclif multi, oclif plugin, and oclif single have all been removed in favor of oclif generate, which generates an oclif based CLI using the hello-world example repo.
  • The reason is that there's not enough of a meaningful difference between a "multi command cli", a "single command cli", and a "plugin" to justify the maintenance cost. The generated CLI can be easily used for any of those use cases.
  • oclif hook is now oclif generate:hook
  • oclif command is now oclif generate:command

New Commands

Version 2 now includes all the commands from the oclif-dev CLI. This means that you can now use a single CLI for all your oclif needs. These commands include:

  • oclif manifest
  • oclif pack
  • oclif pack:deb
  • oclif pack:macos
  • oclif pack:win
  • oclif upload (formerly known as oclif-dev publish)
  • oclif upload:deb (formerly known as oclif-dev publish:deb)
  • oclif upload:macos (formerly known as oclif-dev publish:macos)
  • oclif upload:win (formerly known as oclif-dev publish:win)
  • oclif readme

🏗 Usage

Creating a CLI:

$ npx oclif generate mynewcli
? npm package name (mynewcli): mynewcli
$ cd mynewcli
$ ./bin/run.js --version
mynewcli/0.0.0 darwin-x64 node-v9.5.0
$ ./bin/run.js --help
USAGE
  $ mynewcli [COMMAND]

COMMANDS
  hello
  help   display help for mynewcli

$ ./bin/run.js hello world
hello world! (./src/commands/hello/world.ts)

📚 Examples

🔨 Commands

Command Topics

🚀 Contributing

See the contributing guide.

🏭 Related Repositories

  • @oclif/core - Base library for oclif. This can be used directly without the generator.
  • @oclif/test - Test helper for oclif.

🦔 Learn More

Extension points exported contracts — how you extend this code

VersionsObject (Interface)
(no doc)
src/util.ts
VersionsObject (Interface)
(no doc)
src/version-indexes.ts
MaybeCompatibleHelp (Interface)
(no doc)
src/help-compatibility.ts
HelpBaseDerived (Interface)
(no doc)
src/readme-generator.ts

Core symbols most depended-on inside this repo

exec
called by 46
test/integration/util.ts
exec
called by 43
src/generator.ts
templateShortKey
called by 28
src/upload-util.ts
log
called by 22
src/log.ts
dist
called by 11
src/commands/upload/deb.ts
deleteFolder
called by 9
test/helpers/helper.ts
commitAWSDir
called by 8
src/upload-util.ts
commands
called by 7
src/readme-generator.ts

Shape

Function 89
Method 85
Class 77
Interface 4

Languages

TypeScript100%

Modules by API surface

src/readme-generator.ts22 symbols
src/util.ts15 symbols
src/tarballs/build.ts13 symbols
src/generator.ts12 symbols
src/commands/promote.ts11 symbols
src/commands/generate.ts8 symbols
src/help-compatibility.ts7 symbols
src/commands/upload/deb.ts7 symbols
src/commands/pack/macos.ts7 symbols
src/commands/upload/tarballs.ts6 symbols
src/commands/manifest.ts6 symbols
src/commands/init.ts6 symbols

Dependencies from manifests, versioned

@aws-sdk/client-cloudfront3.1075.0 · 1×
@aws-sdk/client-s33.1073.0 · 1×
@commitlint/config-conventional19 · 1×
@eslint/compat1.4.1 · 1×
@inquirer/confirm3.1.22 · 1×
@inquirer/input2.2.4 · 1×
@inquirer/select2.5.0 · 1×
@oclif/core4.11.11 · 1×
@oclif/plugin-help6.2.52 · 1×
@oclif/plugin-legacy2.0.37 · 1×
@oclif/plugin-not-found3.2.87 · 1×
@oclif/plugin-warn-if-update-available3.1.67 · 1×

For agents

$ claude mcp add oclif \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact