Mass CLI Overview
The Mass CLI is a powerful command line interface for interacting with the Massdriver platform. It is used to build and publish bundles, manage deployments, and more.
Installation
Manual Installation
To install (or update) the Mass CLI manually, download the latest release from the Mass CLI releases page.
Select the file that matches your operating system and architecture, i.e. mass_darwin_amd64.zip
for Mac OS users.
Unzip the mass
file and move it to a directory in your $PATH
, i.e. /usr/local/bin
.
note
For Mac OS users, you will need to allow mass
to run by opening the System Preferences
app, clicking on Security & Privacy
, and clicking on the Open Anyway
button. You may need to do this a second time after attempting to invoke the mass
command.
Commands
Applications
mass app configure
- Configures applications on Massdrivermass app deploy
- Deploys applications to Massdrivermass app patch
- Patches application configuration on Massdriver
Bundles
mass bundle new
- Interactive wizard to create a new bundle from a templatemass bundle build
- Hydrates a bundle with necessary schema files and validates themassdriver.yaml
filemass bundle publish
- Publishes a bundle to your Massdriver organizationmass bundle lint
- Validates a bundle'smassdriver.yaml
filemass bundle template list
- Lists all available bundle templatesmass bundle template refresh
- Refreshes the list of available bundle templates
Image
mass image push
- Builds and pushes an image to a cloud image registry (e.g. ACR, ECR, or GCR)
Infrastructure
mass infra configure
- Configures infrastructure on Massdrivermass infra deploy
- Deploys infrastructure to Massdrivermass infra patch
- Patches infrastructure configuration on Massdriver
Preview
mass pv decommission
- Decommissions an initialized preview in your projectmass pv deploy
- Deploys a preview in your projectmass pv init
- Generates a preview config file