文档章节

The Titanium Command Line (CLI) project

bigYuan
 bigYuan
发布于 2015/06/17 20:37
字数 610
阅读 123
收藏 0

Installation

[sudo] npm install -g titanium

Bleeding Edge

You can download the latest and greatest unstable Titanium CLI code by running the following:

[sudo] npm install -g git://github.com/appcelerator/titanium.git

Obtaining a Titanium SDK

You will need to download a Titanium SDK 3.0 or newer:

# stable release (recommended)
titanium sdk install --default

There are times when the latest stable release has an issue or lacks a feature in which case you may want to try an unstable Titanium SDK build. These builds are not recommended for production use, but should work for development.

# unstable next release
titanium sdk install --branch 3_1_X --default

# bleeding edge
titanium sdk install --branch master --default

Setting up the Titanium CLI

Before you begin using the Titanium CLI, you should configure it by running the "setup" command:

titanium setup

It will prompt you with a number of questions such as your e-mail address (for logging into the Appcelerator Network), the location of your Android SDK, and so on.

Usage

titanium <command> [options]

Built-in Commands

config

Configure your CLI settings.

Implementation not complete

titanium config <setting> <value>

help

Displays help or help for a specific command.

titanium

titanium help

titanium --help

titanium help <command>

titanium <command> --help

login

Logs into the Appcelerator Network

Implementation not complete

Login requires both user and password options to be passed in.

titanium login <username> <password>

If you omit an option, the CLI will prompt you for the value.

titanium login

logout

Logs out of the Appcelerator Network

Implementation not complete

titanium logout

sdk

Download and install Titanium SDKs

sdk install

Installs a specific version of the Titanium SDK. If no version is specified, it assumes the latest.

titanium sdk install

titanium sdk install <version>

titanium sdk install <version> --force

Download, install , and set as default SDK.

titanium sdk install <version> --default

Download and install the latest version for the specified branch

titanium sdk install --branch master

sdk uninstall

Uninstalls a Titanium SDK.

titanium sdk uninstall <version>

sdk list

Lists all installed Titanium SDKs. Optionally lists all branches and releases.

titanium sdk list

titanium sdk list -b
titanium sdk list --branches

titanium sdk list -r
titanium sdk list --releases

titanium sdk list -br
titanium sdk list --branches --releases

setup

Reconfigures the Titanium CLI by asking you a series of questions.

titanium setup

status

Indicates whether you are logged in or not.

titanium status

titanium status --output json

version

Displays the current version of the CLI and exits.

titanium -v

titanium --version

info

Displays information about your development environment including Xcode installs, iOS SDKs, Android SDKs, and so on.

titanium info

titanium info -o json

Hacking the Titanium CLI

In order to begin hacking on the Titanium CLI, you need to download and install git.

If you have already installed a previous version of the Titanium CLI, it's recommended you uninstall the old one first:

[sudo] npm uninstall -g titanium

The Titanium CLI is essentially pure JavaScript, so there is no build process. You just need to pull the code and resolve the dependendencies.

git clone git@github.com:appcelerator/titanium.git
cd titanium
npm install
sudo npm link

Running Unit Tests

To run the unit tests, simply run:

node forge test

Running Code Coverage

To generate the code coverage, you first must install node-jscoverage. The easist way to do this is run:

git clone git@github.com:visionmedia/node-jscoverage.git
cd node-jscoverage
./configure
make
sudo make install

Then run:

node forge test-cov

It will generate a file called coverage.html in the Titanium CLI directory.

Looking for the really old CLI?

Don't worry, it's still around. You can install it by running:

[sudo] npm install –g titanium@0.0.26


本文转载自:https://github.com/appcelerator/titanium

共有 人打赏支持
bigYuan
粉丝 16
博文 135
码字总数 43172
作品 0
大连
程序员
私信 提问
Working with Angular/Cli + ASP.NET Core Web API + VSCode !

This sample is meant as a starting step to create a standard ASP.NET WEB API project using dotnet Cli command and integrate with Angular library with the help of @Angular/Cli co......

Sriganesha Rao
2017/12/15
0
0
gradle编译工具,参数传递

gradle编译工具,参数传递 gradle props Gradle supports both project properties and system properties/enviroment properties). The main difference between the two that is of intere......

来福马斯特
2017/09/23
0
0
mvn archetype:create-from-project 构建模板错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2 .4:create-from-project (default-cli) on project caseimagesys: Error configuring command-line. Re......

peizhenfly
2015/08/22
0
0
How to connect an Ionic Angular application to AWS

TL;DR Since Ionic is powered by Angular, this will hold true for any Angular application, and you will be able to use this knowledge in any Angular web application with minimal ......

Nikola Breznjak
2017/12/26
0
0
如何通过OpenStack命令行管理VMs

I assume that there is an OpenStack deployment already up and running somewhere. I am going to use OpenStack CLI clients to manage VMs on the existing OpenStack setup. Install O......

yuyanghuoming
2014/04/20
0
1

没有更多内容

加载失败,请刷新页面

加载更多

GIT 常用命令

Git图形化界面我用的还可以,但是命令就不太会了,索性和大家一起学习下Git命令的用法... 一般来说,日常使用只要记住下图6个命令,就可以了。但是熟练使用,恐怕要记住60~100个命令。 下面...

神勇小白鼠
11分钟前
1
0
可编程着色器---OpenGL渲染流水线

固定功能流水线 改变流水线结构 顶点着色器 片元着色器 几何着色器 曲面细分着色器

中国龙-扬科
13分钟前
1
0
qs.parse()、qs.stringify()、JSON.parse()、JSON.stringify()使用方法

qs.parse()、qs.stringify()、JSON.parse()、JSON.stringify()使用方法 1 qs.parse() 将url中的参数字符串转换成json对象。 var qs = require('qs');var url = 'method=query_sql_dataset_......

neumeng
26分钟前
2
0
需要注意的new Date 时区问题

(1)、Date中保存的是什么 Date对象里存的只是一个long型的变量,其值为自1970年1月1日0点至Date对象所记录时刻经过的毫秒数。调用Date对象getTime()方法就可以返回这个毫秒数。 (2)、时区...

为了美好的明天
32分钟前
1
0
java cache

##基本原理 ###核心内容 java cache API的5个核心接口:CachingProvider,CachingManager,Cache,Entry,ExpiryPolicy CachingProvider: 缓存提供者定义建立,配置,获得,管理,控制一个或者多...

zzx10
32分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部