menu
Channels
Team
Posts
Members
Info
down-caret

How would I deploy custom config file with the CLI

I am currently working on deploying a client and we have configuration files that need to be installed in the config dir of the CLI while deploying with npm install it's it possible to do it and how ?

thumbsup
0
message-simple
0

oclif templating / scaffolding command like yeoman / plopjs

Hey, just starting out with oclif so new to how to build commands. But I'd like to build a command to code generate parts of a web app that I'm building. I have it in mind that I should use something like yeoman or plopjs (both of which I've not used before). Example; I want to…

thumbsup
2
message-simple
6

Save the Date: oclifconf on May 31st!

The inaugural oclifconf will take place on Friday, May 31st in San Francisco. What is oclifconf? It's the first in-person event for the oclif community, organized by Heroku & Salesforce Open Source. oclifconf will be a one-day, single-track conference for developers & product…

thumbsup
6
message-simple
0

Can you call an oclif command programatically?

I am working on wrapping an oclif cli with a gui and need to determine how to execute the commands from the callbacks.

thumbsup
0
message-simple
1

mutate in prerun hook

Working on a plugin that adds node-config like function to all commands (env vars, config file, and cli as flags & args). I do not want to extend the command class - then everythign would have to use my command. So in a prerun hook I am mutating the argv and flags object. Can…

thumbsup
0
message-simple
0

Is there a way to do a global error boundary?

I'm looking to catch errors across all commands, and return a friendly message and a way to report it. Is there a good way to achieve this?

thumbsup
0
message-simple
1

How to migrate from Node js cli to OCLIF?

We have a Node js CLI script which we are planning to migrate to OCLIF multi cli. How i can i do it ? If yes can i convert the js scripts to typescript too ?

thumbsup
0
message-simple
0

How can i mock commands executed in tests

Hi All, I am new to oclif, really appreciate your help in advance I am creating commands using oclif, which simplifies l local set up/runlist - - I am using execa[1] to run system commands as part of the command. …

thumbsup
0
message-simple
1

Shared flag from base command + args in sub commands

Is there a way to implement this in the best way ?? https://github.com/oclif/oclif/issues/225

thumbsup
0
message-simple
0

hey guys, anyone knows this issue ?

I developed a new package which i hope to use in my project with npm install. The IDE says no errors , but when I run ./bin/run, it failes with MODULE_NOT_FOUND

thumbsup
0
message-simple
0