sudhanshug16 / fly-rollback-cli

A small CLI to rollback fly.io deploys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fly-rollback-cli

A small CLI to rollback fly.io deploys

Pure shell script, zero dependency, no config required, uses the fly cli underneath.

Installation

To install(or update) the CLI, follow these steps:

  1. Clone the repository:
git clone https://github.com/sudhanshug16/fly-rollback-cli.git
  1. Navigate to the cloned directory:
cd fly-rollback-cli
  1. Make the install script executable:
chmod +x install.sh
  1. Run the install script with root permissions:
sudo ./install.sh

Usage

rollback

fly-rollback [version] [flags]

Where:

  • version is the version to rollback to. It can be in the format HEAD^n or vN.
    • HEAD^n: This will rollback to the nth version from the latest. For example, HEAD^1 will rollback to the previous version, HEAD^2 will rollback to the version before the previous one, and so on.
  • flags are any extra flags that need to be passed to fly.

Example:

fly-rollback HEAD^1 --env production

This will rollback to the previous version in the production environment.

Disclaimer: Only complete releases can be rolled back to. If the release's status is not complete, the rollback will not be performed.

list releases

fly-rollback list

This will list all the releases.

About

A small CLI to rollback fly.io deploys

License:MIT License


Languages

Language:Shell 100.0%