科尔多瓦开发_科尔多瓦:命令行界面

科尔多瓦开发

科尔多瓦:命令行界面 (Cordova: Command Line Interface)

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

  • Native CLI Terminal.Native CLI Terminal
  • Native CLI CMD(Command Prompt).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,因此如果没有它,我们将无法执行单个进程。
    1. To create a cordova project.

      创建一个cordova项目。
    2. To add platform for which we want to develop app.

      添加我们要为其开发应用程序的平台。
    3. To add plugins.

      添加插件。
    4. To generate APK.

      生成APK。

For these listed tasks, we have to pass command line arguments.

对于这些列出的任务,我们必须传递命令行参数。

如何在Windows OS中打开CMD? (How to open CMD in Windows OS?)

  1. cmd in the Menu search bar by typing cmd or command prompt, then click on the Command Prompt App option in search results. cmd ,然后在搜索结果中单击“命令提示符应用程序”选项。

    科尔多瓦开发_科尔多瓦:命令行界面



  2. Ctrl + R to open Ctrl + R打开RUN dialog box, and type in RUN对话框,然后键入cmd to open Command Prompt. cmd打开命令提示符。

    科尔多瓦开发_科尔多瓦:命令行界面



  3. cmd in normal mode. cmd

    科尔多瓦开发_科尔多瓦:命令行界面



  4. cmd in searchbar and click right button of mouse and choose option cmd ,然后单击鼠标右键,然后选择选项Run as administrator. 以管理员身份运行

    科尔多瓦开发_科尔多瓦:命令行界面

Following are some useful commands, used in day-to-day work:

以下是在日常工作中使用的一些有用命令:

  • cls → Clear the Command Prompt screencls →清除命令提示符屏幕
  • cd [directory_path] → To go to any directorycd [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)

  1. Command + Space to open Command + Space打开Spotlight Search, and type Spotlight搜索 ,然后在搜索字段中键入terminal in the search field. terminal

    科尔多瓦开发_科尔多瓦:命令行界面

  2. Terminal - Utilities option to open the Terminal. 终端-实用程序选项以打开终端。

    科尔多瓦开发_科尔多瓦:命令行界面

翻译自: https://www.studytonight.com/apache-cordova/command-line-interface

科尔多瓦开发