Taskcluster CLI is a command line interface for creating and managing tasks submitted to taskcluster.
- node 0.10.30 or greater
- Run
npm install -g taskcluster-clito install taskcluster-cli and required dependencies.
Add taskcluster credential environment variables. This is best done in your shell profile.
export TASKCLUSTER_CLIENT_ID=...
export TASKCLUSTER_ACCESS_TOKEN=...
export TASKCLUSTER_CERTIFICATE=... # the full JSON stringOr you can run taskcluster login which will authenticate you with temporary
credentials that will then be stored in a configuration. This is the preferred
way of authentication.
taskcluster run --provisioner-id=<instance provisioner> --worker-type=<worker type> <image> <commands>Create a task that will count the number of files in a directory on Ubuntu 14.04.
taskcluster run --owner=your@email.com --provisioner-id=aws-provisioner --worker-type=cli ubuntu:14.04 ls
[taskcluster] taskId: 82LOBaruRZaGSXqXc3U6rA, workerId: i-56443d59
ubuntu:14.04 exists in the cache.
bin dev home lib64 mnt proc run srv tmp var
boot etc lib media opt root sbin sys usr
[taskcluster] Successful task run with exit code: 0 completed in 1.337 seconds