Stackahoy

´╗┐Command-line

The Stackahoy CLI tool allows you to trigger a deployment without having to push to the repository. This can be extremely powerful as it allows you integrate with any number of other utilities or workflows.

Use cases may include:

  • Zero downtime Docker container deployments when using a Docker registry.
  • Third-party implementations. e.g. grunt, gulp, Makefiles, ect.
  • Misc. application triggered deployments.
  • You don't want to make use of webhooks (or your provider does not support them).

Installation

npm i -g stackahoy

Usage

stackahoy [action] [options]

Example

# List all available repos and branches. Start here.
stackahoy list --token="your-token"


# Typical deployment to production.
stackahoy deploy \
  --token="your-token" \
  --repo="57acb5757ec23523032d92ca" \
  --branch="production"


# Deploy to production, except don't sync files. Only execute post-commands and
# delivery configuration files. This is great for something like a Docker
# container deployment.
stackahoy deploy \
  --token="your-token" \
  --repo="57acb5757ec23523032d92ca" \
  --branch="production" \
  --skip-delivery

Note: You can find your private token on your user dashboard. You should keep this safe.