Module Not Found when using @getflywheel/local package from NPM

I am creating a CLI to automated some of my workflow. One of the pieces is to create an install in Local. My CLI is built with @oclif and is Node based. I thought I could require the @getflywheel/local package and interact with the API that way. I am hitting a wall in that when I import the module, I get a MODULE_NOT_FOUND error. I am requiring many other packages so I know it is not my app. I also see the package inside my node_modules directory. I have deleted my package-lock and node_modules many times and re-installed with npm install. I am at a loss on why this package will not work. It simply will not import. Any help is appreciated.

Is this the correct package for interacting programmatically with Local?

Screen Shot 2020-05-13 at 11.51.19 AM

@clay can you confirm that I can use @getflywheel/local package outside of building an add-on? I am trying to use it to build an in-house CLI. Is this package how you all are building out your CLI?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.