热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

科尔多瓦开发CommandLineInterface(CLI)isatext-basedinterfacethatisusedtooperatesoftwareandoperati

科尔多瓦开发

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,

    它被使用,

    1. To create a cordova project.
    2. To add platform for which we want to develop app.
    3. To add plugins.
    4. To generate APK.

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

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

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

  1. 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 ,然后在搜索结果中单击“命令提示符应用程序”选项。

    Command Line Interface in Windows


  2. We can also press Ctrl + R to open RUN dialog box, and type in cmd to open Command Prompt.

    我们也可以按Ctrl + R打开RUN对话框,然后键入cmd打开命令提示符。

    Command Line Interface in Windows


  3. It will open a black colored screen, this is the command prompt. Step 1 will open cmd in normal mode.

    它将打开黑色屏幕,这是命令提示符。 步骤1将在正常模式下打开cmd

    Command Line Interface in Windows


  4. To open command prompt in administrator mode, search cmd in searchbar and click right button of mouse and choose option Run as administrator.

    要以管理员模式打开命令提示符,请在搜索栏中搜索cmd ,然后单击鼠标右键,然后选择选项以管理员身份运行

    Command Line Interface in Windows

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)

  1. Press Command + Space to open Spotlight Search, and type terminal in the search field.

    Command + Space打开Spotlight搜索 ,然后在搜索字段中键入terminal

    Terminal in Mac OSx
  2. And click on the Terminal - Utilities option to open the Terminal.

    然后单击终端-实用程序选项以打开终端。

    Terminal in Mac OSx

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

科尔多瓦开发



推荐阅读
author-avatar
YYYan1023
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有