-
Notifications
You must be signed in to change notification settings - Fork 155
Terminals
Meta:
Describe and explain several consoles that can be used to run RedwoodJS CLI. Focus on the platform independence issues
Using a command-line interface requires a terminal
application often referred to as a console
- in this document both terms are used interchangeably.
Before presenting a few alternative tools to be used in conjunction with the RedwoodJS CLI, recommended by RedwoodJS, please check a great article What's the difference between a console, a terminal, and a shell? by Scott Hanselman, providing the answers for often raised questions:
- Why would I use Windows Terminal over PowerShell?
- I don't need WSL for bash, I use Cygwin.
- Can I use conemu with PowerShell Core or do I need to use Windows Terminal?
Rather than using the previously available "improvements" made on top of the classic CMD.exe application, or even PowerShell
application the recently released Windows Terminal
is a close second alternative to the VSCode
tool still referred too as an editor, while it is very close to being an IDE.
The Windows Terminal
is best installed from the Microsoft Store. Taking this approach instead of fetching it from GitHub will ensure its automatic update. It is preconfigured with three shells (as shown below):
where the click on the settings button triggered the launch of the Visual Studio. We suggest this Tutorial too set up Powerline (Powershell theme) in Windows Terminal.
Meta:
Verify the article [Troubleshoot Terminal launch failures](https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch). I had a very surprising Windows Terminal with CMD shell crash in using VSCode
This terminal (often described as "Portable console emulator for Windows") is almost as user friendly, offering nearly everything that Windows Terminal does. The screen shot below depicts the split screen functionality hosting the CMD and PuTTY shells (the latter is worlds most popular free SSH client)
cmder
as shipped uses CMD.exe (Command Shell) and just like the Windows Terminal described above it can host PowerShell). In it's original form we found problems with some of Redwood generators that prompt users to supply additional data. Example: yarn rw prisma migrate dev
expects the string like create posts
to be typed in. This generator crashes trying to fetch the user's answer.
©2021 Tom Preston-Werner
Redwood is released under the MIT License