question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx oclif@2.0.0-main.8 generate is not working

See original GitHub issue

I wanted to try out the version 2.0.0 and the new features it brings. This turns out to be impossible as running the command npx oclif@2.0.0-main.8 generate mynewcli can’t succeed.

Line 75 in generators/cli.ts: execSync('git clone https://github.com/oclif/hello-world.git ${path.resolve(this.name)}') will do two things:

  1. requires you to log in with you git user, which is frustrating as this should never be necessary.
  2. will fail after providing your credentials with: remote: Repository not found. fatal: repository 'https://github.com/oclif/hello-world.git/' not found

I’d love to try and tests the new software, but this is kinda frustrating. Is there something I’m not doing correctly here?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RodEspcommented, Oct 14, 2021

Hey @Peter-Piper, sorry about that! We just forgot to make the hello-world repo public. We just did that though, so you should be able to generate new clis now without needing to log into github 😄

Please confirm and we can close this issue.

0reactions
mdonnalleycommented, Dec 6, 2021

@Peter-Piper thanks for pointing that out! I’ll put that on our backlog of things to fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generator Doesn't Work · Issue #829 · oclif/oclif - GitHub
I'm seeing what appears to be a different error when I attempt to run the generator. $ npx oclif generate nodcli _-----_ |...
Read more >
oclif - npm
CLI Generator - Run a single command to scaffold out a fully functional CLI and get started quickly. See Usage below. Testing Helpers...
Read more >
FAQs · oclif: The Open CLI Framework
How can I make the oclif generator run faster? If you're using npx, install it first with npm install -g oclif . This...
Read more >
oclif - UNPKG
This is a framework for building CLIs in Node.js. This framework was built out of the [Heroku CLI](https://cli.heroku.com) but generalized to build any...
Read more >
oclif | Yarn - Package Manager
oclif : create your own CLI. oclif. readme. oclif: Node.JS Open CLI Framework. Version CircleCI Downloads/week License.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found