tarballs-cli

Semver-oriented TypeScript library skeleton.


Keywords
typescript, library, skeleton, scaffold, cli, npm, npm-install, tar, tarballs, tarzan, tgz
License
ICU
Install
npm install tarballs-cli@0.0.103

Documentation

Tarzan / tarballs-cli


Clone a git repo, to which you will push files (tarballs, etc).

$ tarzan init oresoftware/tarballs "git@github.com:ORESoftware/tarballs.git"

the 'init' command clones the git repo to: "$HOME/.trbl/repos/oresoftware/tarballs"
and "oresoftware/tarballs" becomes the id for that repo

Use a repo to push files to

$ tarzan use oresoftware/tarballs

the 'use' command sets a certain repo as the active one (globally/for all shells)

Add a local file and push it to the remote repo

$ tarzan add foo.tgz "x/y/z/foo.tgz"

the 'add' command writes a file to the active repo to the path and attempts to push the file to the remote.


Install a tarball from Github, with NPM, etc

$ npm install --loglevel=warn -g \
 "https://raw.githubusercontent.com/<org>/<repo>/master/x/y/z/foo.tgz?$(date +%s)"

Using a Dockerfile / building a Docker image:

RUN npm install --loglevel=warn -g \
 "https://raw.githubusercontent.com/<org>/<repo>/master/x/y/z/foo.tgz?$(date +%s)"