node.jstypescriptcommand-line-interfaceoclif

Oclif dynamic autocomplete with http call


Does Oclif support making a call to an API and getting the values returned in order to be used for autocomplete? I have the following use case:

Is this possible in Oclif?


Solution

  • 'It is not possible in Oclif, however the Heroku CLI does this. Check out https://github.com/heroku/cli/tree/master/packages/autocomplete for more information.'

    This is the answer from Oclif team regarding this issue. https://github.com/oclif/oclif/issues/332