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.

`init` usage is unclear

See original GitHub issue
❯ electron-forge
✔ Checking your system

  Usage: electron-forge [options] [command]


  Commands:

    init        Initialize a new Electron application
    import      Attempts to navigate you through the process of importing an existing project to "electron-forge"
    lint        Lints the current Electron application
    package     Package the current Electron application
    make        Generate distributables for the current Electron application
    start       Start the current Electron application
    publish     Publish the current Electron application to GitHub
    install     Install an Electron application from GitHub
    help [cmd]  display help for [cmd]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --verbose      Enables verbose mode

I tried init without commands:

~/zeke master*
❯ electron-forge init
✔ Checking your system

  electron-forge-init(1) does not exist, try --help

I tried init with --help:

~/zeke master*
❯ electron-forge init --help
✔ Checking your system

  electron-forge-init(1) does not exist, try --help

I tried help init

~/zeke master*
❯ electron-forge help init  
✔ Checking your system

  electron-forge-init(1) does not exist, try --help

Suggestions:

When init is invoked incorrectly, show usage / examples.

Allow electron-forge init --help or similar to be used to find out how the command works.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

27reactions
mattfwoodcommented, Nov 13, 2018

If this ends up happening to anyone else, I was trying to install electron-forge globally with Yarn and it looks like it has to be done with NPM specifically for some reason.

npm install -g electron-forge
1reaction
zekecommented, Feb 6, 2017

It’s working! 🎈

All the various incantations are fixed:

❯ electron-forge init 
✔ Checking your system
? WARNING: The specified path: "/Users/zeke/Desktop" is not empty, do you wish to continue? No
✖ Initializing Project Directory

Electron forge was terminated:
Cancelled by user
❯ electron-forge init --help
✔ Checking your system

  Usage: electron-forge-init [options] [name]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -t, --template [name]    Name of the forge template to use
    -l, --lintstyle [style]  Linting standard to follow.  For the default template it can be "airbnb" or "standard"
❯ electron-forge init myproject
✔ Checking your system
✔ Initializing Project Directory
✔ Initializing Git Repository
✔ Copying Starter Files
✔ Initializing NPM Module
✔ Installing NPM Dependencies
❯ electron-forge help init
✔ Checking your system

  Usage: electron-forge-init [options] [name]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -t, --template [name]    Name of the forge template to use
    -l, --lintstyle [style]  Linting standard to follow.  For the default template it can be "airbnb" or "standard"
Read more comments on GitHub >

github_iconTop Results From Across the Web

`init` usage is unclear · Issue #107 · electron/forge - GitHub
I found out that yarn is somehow still used. When the project was created, even though I used NPM, there was a yarn.lock...
Read more >
'git init -b <branch name>' command in terminal is throwing an ...
I am in the relevant working directory in the terminal and am trying to use the git init -b main command. Initially, I...
Read more >
Effective Dart: Usage - Dart programming language
If the variable is nullable, then it is implicitly initialized to null for you. There's no concept of “uninitialized memory” in Dart and...
Read more >
Docs feedback: Unclear how to run terraform init - GitLab.org
After you execute the terraform init command, you can use GitLab CI/CD to run terraform commands. but I don't see anywhere where it ......
Read more >
Unclear Pronoun Antecedents - Cn
Cathy was surprised she had been voted president by her classmates since they never had much self-confidence. Click here to go back to...
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