文档章节

The Titanium Command Line (CLI) project

bigYuan
 bigYuan
发布于 2015/06/17 20:37
字数 610
阅读 121
收藏 0
点赞 0
评论 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
博文 126
码字总数 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

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

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

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

Cordova 3.x 基础(1) -- 环境搭建(Windows / Android)

Cordova 3.x 基础(1) -- 环境搭建(Windows / Android) Mobile App分为三大类:Native App,Hybrid App,Web App。其中Hybrid App介于Native App和Web App之间,它能兼顾Native App的良好用...

youxizhe ⋅ 2014/09/29 ⋅ 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 ⋅ 1

varnish 4.0 官方文档翻译6-用户手册-启动运行文档概况

启动和运行varnish 本节包含了启动,运行,停止varnish,命令行参数,如何与运行着的varnish进程进行通信,配置存储和套接字,安全性和如何保护varnish免受攻击。 Security first 安全第一 ...

wild-life ⋅ 2015/05/10 ⋅ 0

Mininet Walkthrough

Mininet Walkthrough This walkthrough demonstrates most Mininet commands, as well as its typical usage in concert with the Wireshark dissector. The walkthrough assumes that your ......

LeBlancs ⋅ 2016/12/28 ⋅ 0

Redis 2.0 RC 发布,高性能的K/V数据库

redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部 分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,P...

红薯 ⋅ 2010/05/24 ⋅ 0

php 编译错误 /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation

以下的错误是: /usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'berscanf' /usr/bin/ld: note: 'berscanf' is defined in DSO /lib64/liblber-2.4.so.2 so try adding......

Hycomer ⋅ 2013/10/13 ⋅ 1

没有更多内容

加载失败,请刷新页面

加载更多

下一页

从方法论到零售客户实践 解码阿里巴巴数据中台——2018上海云栖大会

摘要: 一、数据中台之道 6月8日,上海云栖大会进入了第二天的议程,数据中台专场论坛座无虚席,数据中台总架构师邓中华女士向在场的观众介绍了数据中台的衍生发展之道。 基于OneID、OneData...

阿里云云栖社区 ⋅ 24分钟前 ⋅ 0

Ubuntu部署django问题汇总

使用Anaconda3的Python3.6的pip安装UWSGI报错 原因是gcc版本不兼容,安装4.7并修改gccsudo apt-get install gcc-4.7sudo mv /usr/bin/gcc /usr/bin/gcc.baksudo ln -s /usr/bin/gcc-4.......

wuyaSama ⋅ 27分钟前 ⋅ 0

从方法论到零售客户实践 解码阿里巴巴数据中台——2018上海云栖大会

摘要: 一、数据中台之道 6月8日,上海云栖大会进入了第二天的议程,数据中台专场论坛座无虚席,数据中台总架构师邓中华女士向在场的观众介绍了数据中台的衍生发展之道。 基于OneID、OneData...

猫耳m ⋅ 27分钟前 ⋅ 0

Docker减肥小记

如果经常使用 docker,你会发现 docker 占用的资源膨胀很快,其中最明显也最容易被察 如何快速的清理 docker 占用的系统资源,具体点说就是删除那些无用的镜像、容器、网络和数据卷… 1、查看...

寰宇01 ⋅ 38分钟前 ⋅ 0

微信小程序中如何使用WebSocket实现长连接(含完整源码)

本文由腾讯云技术团队原创,感谢作者的分享。 1、前言 微信小程序提供了一套在微信上运行小程序的解决方案,有比较完整的框架、组件以及 API,在这个平台上面的想象空间很大。腾讯云研究了一...

JackJiang- ⋅ 45分钟前 ⋅ 0

定制库到Maven本地资源库

1.如果只有定制库的JAR文件 下载链接如下:pdf.jar 2.使用命令转换成Maven本地资源 mvn install:install-file -Dfile=/Users/manager/Downloads/clj-pdf-2.2.33.jar -DgroupId=clj-pdf -Dar......

年少爱追梦 ⋅ 50分钟前 ⋅ 0

高仿springmvc之xuchen-mvc

package org.mvc.framework.servlet; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.......

徐志 ⋅ 52分钟前 ⋅ 0

关于自定义URLStreamHandler的一次踩坑

关于自定义URLStreamHandler的一次踩坑 20180625 lambo init 说明 一般自定义实现url的协议解析.方案为实现URLStreamHandler.实现其 openConnection 就可以了, 如果我们执行 new URL("xx://...

林小宝 ⋅ 53分钟前 ⋅ 0

【SM2证书】利用BC的X509v3CertificateBuilder组装X509国密证书

演示证书文件 链接: https://pan.baidu.com/s/1ijHNnMQJj7jzW-jXEVd6Gg 密码: vfva 所需jar包 <!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on --> <dependenc......

小帅帅丶 ⋅ 54分钟前 ⋅ 0

用Calendar 实现 计算 一段时间的毫秒值

Calendar c=Calendar.getInstance();c.add(Calendar.MONTH, -1);int lastMonthMaxDay=c.getActualMaximum(Calendar.DAY_OF_MONTH);c.set(c.get(Calendar.YEAR), c.get(Calendar.MONTH)......

岸芷汀兰 ⋅ 57分钟前 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部