Skip to main content

User Experience

oclif's philosophy is that developers should free to design any user experience that they want for their users. In other words, we try really hard to not make any UX decisions for you.

So many times we utilize hooks whenever a user experience is required (e.g. the provided command isn't found). That way you can design the exact experience you want your users to have. In the case of error handling, you're able to override oclif's default behavior.

But to make it easy for you, @oclif/core exports a ux module that offers several tools you can use to implement your desired user experience.

However, due to time constraints we are not able to support this module as well as we would like. For that reason, we strongly recommend that you find npm libraries that specialize in the UX components you want to use. Here's a brief list of some of the libraries we like: