科尔多瓦开发
Command Line Interface(CLI) is a text-based interface that is used to operate software and operating systems while allowing the user to respond to visual prompts by typing simple commands into the interface and receiving a reply in the same way. CLI is quite different from the Graphical User Interface(GUI) that is presently being used in the latest operating systems.
命令行界面(CLI)是基于文本的界面,用于操作软件和操作系统,同时允许用户通过在界面中键入简单命令并以相同方式接收答复来响应视觉提示。 CLI与当前在最新操作系统中使用的图形用户界面(GUI)完全不同。
We also call it Terminal in Mac OS or Command Prompt in Windows operating system.
在Mac OS中,我们也将其称为Terminal ;在Windows操作系统中,我们将其称为Command Prompt 。
In Linux Or Mac we call it Native CLI Terminal.
在Linux或Mac中,我们将其称为Native CLI Terminal 。
In Windows we call it Native CLI CMD(Command Prompt).
在Windows中,我们将其称为Native CLI CMD(Command Prompt) 。
CLI在Cordova中扮演什么角色? (What role does CLI play in Cordova?)
Cordova is totally dependent on CLI, so without it we can't execute a single process.
Cordova完全依赖CLI,因此如果没有它,我们将无法执行单个进程。
It is used,
它被使用,
- To create a cordova project.
- To add platform for which we want to develop app.
- To add plugins.
- To generate APK.
For these listed tasks, we have to pass command line arguments.
对于这些列出的任务,我们必须传递命令行参数。
如何在Windows OS中打开CMD? (How to open CMD in Windows OS?)
Search cmd in the Menu search bar by typing cmd or command prompt, then click on the Command Prompt App option in search results.
通过键入cmd或命令提示符在菜单搜索栏中搜索cmd ,然后在搜索结果中单击“命令提示符应用程序”选项。
We can also press Ctrl + R
to open RUN dialog box, and type in cmd to open Command Prompt.
我们也可以按Ctrl + R
打开RUN对话框,然后键入cmd打开命令提示符。
It will open a black colored screen, this is the command prompt. Step 1 will open cmd in normal mode.
它将打开黑色屏幕,这是命令提示符。 步骤1将在正常模式下打开cmd 。
To open command prompt in administrator mode, search cmd in searchbar and click right button of mouse and choose option Run as administrator.
要以管理员模式打开命令提示符,请在搜索栏中搜索cmd ,然后单击鼠标右键,然后选择选项以管理员身份运行 。
Following are some useful commands, used in day-to-day work:
以下是在日常工作中使用的一些有用命令:
cls
→ Clear the Command Prompt screen
cls
→清除命令提示符屏幕
cd [directory_path]
→ To go to any directory
cd [directory_path]
→转到任何目录
cd ..
→ To come out of any directory, to its immediate parent directory.
cd ..
→要退出任何目录,请转到其直接上级目录。
mkdir [directory_name]
→ This command is used to create any directory.
mkdir [directory_name]
→此命令用于创建任何目录。
ipconfig
→ To get information about your IP address and DNS related info.
ipconfig
→获取有关您的IP地址和DNS相关信息的信息。
在Mac OS中打开终端 (Opening Terminal in Mac OS)
Press Command + Space
to open Spotlight Search, and type terminal in the search field.
按Command + Space
打开Spotlight搜索 ,然后在搜索字段中键入terminal 。
And click on the Terminal - Utilities option to open the Terminal.
然后单击终端-实用程序选项以打开终端。
翻译自: https://www.studytonight.com/apache-cordova/command-line-interface
科尔多瓦开发