Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Terminals

Nikolaj Ivancic edited this page Mar 20, 2021 · 3 revisions

Meta:

Describe and explain several consoles that can be used to run RedwoodJS CLI. Focus on the platform independence issues

Terminal

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?

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)


Warning

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 poststo be typed in. This generator crashes trying to fetch the user's answer.