A CLI tool to deploy an app to an existing Glitch project
Last updated 23 days ago by bacongravy .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glitcheroo 
SYNC missed versions from official npm registry.

A CLI tool to deploy an app to an existing Glitch project. The contents of the existing Glitch project are completely replaced. Use carefully!

Basic usage

A target Glitch project must be setup to receive deployments before you can deploy an app with glitcheroo.

Deployment is initiated from the source project. The source may be another Glitch project or a project committed to a Git repository on your local device.

Node.js is required, version 8.2.0 or higher.

Step 1: Setup the target

Open a terminal in the root of the Glitch project that you want to deploy to. Run the following command to setup the target project:

npx glitcheroo setup-target

WARNING: This command allows the Glitch project to be completely overwritten via remote Git operations.

Step 2: Deploy the app

Open a terminal in the root of the project that you want to deploy. Run the following command to deploy the app:

npx glitcheroo deploy

The first time you run this command in a project it will prompt you to provide the Git URL of the target project. Find it in the "Tools > Import and Export" panel of the Glitch project editor.

And that's it! There is no step 3. Glitch will automatically detect the project change, reinstall the dependencies, and start the deployed app.


Installation is not required. Node.js already includes the npx tool, and the npx tool automatically downloads and runs the latest version of glitcheroo every time you use it to run the commands.

If you don't want npx to re-download glitcheroo every time you run the commands you can install the glitcheroo package as a devDependency of the project you are deploying:

npm install -D glitcheroo

You should continue to use npx to run glitcheroo after installing the package. The npx tool will find the version of glitcheroo installed in your project and use it instead of downloading the latest version.

Advanced usage


As a convenience, this tool lets you remix a Glitch project to your local device. The remixed project is configured to target the original Glitch project for deployment.

Remix a target Glitch project by running the following command:

npx glitcheroo remix

Provide the Git URL of the target project when prompted.


The configuration status for a project may be retrieved by running the following command:

npx glitcheroo status

This prints whether the project has been configured as a source, a target, or both.


The configuration for a project may be reset by running the following command:

npx glitcheroo reset

This removes the Git configuration values added by the setup-target, deploy, and remix commands.

Implementation details

The glitcheroo tool works by configuring and using Git.

The setup-target command:

  • sets the receive.denyCurrentBranch config value to ignore so that the master branch can be pushed to
  • installs a post-receive hook that runs after deploy and refreshes the workspace and Glitch editor with the new changes

The deploy command:

  • adds a remote tracked repository named glitcheroo that points at the target
  • pushes +HEAD:master to the glitcheroo remote

The remix command:

  • clones the target Git repository
  • renames the default remote in the new repository from origin to glitcheroo


This project was inspired by Melissa McEwen's fascinating article Automating My Deploys From GitHub to Glitch, published on DEV on April 21, 2020.

Huge thanks to Glitch for providing a great service. This project is not affiliated with Glitch in any way.

Current Tags

  • 1.1.0                                ...           latest (23 days ago)

3 Versions

  • 1.1.0                                ...           23 days ago
  • 1.0.1                                ...           24 days ago
  • 1.0.0                                ...           24 days ago
Maintainers (1)
Today 0
This Week 0
This Month 32
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (10)
Dependents (0)

Copyright 2014 - 2017 © |