Skip to content

A simple bash script to update Postman from the command line (for Linux)

Notifications You must be signed in to change notification settings

Mhs-220/postman-updater-linux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Postman Updater (for Linux)

This is a simple bash script, which allows you to update the Postman Linux app, straight from the terminal.

Installation

1. Using NPM

$ npm install -g postman-updater-linux

2. Manually

Copy the postman-updater script to your $PATH, and make it executable. Remember to change the path, if you do not want to install it to /usr/local/bin:

# curl -o /usr/local/bin/postman-updater https://github.com/czardoz/postman-updater-linux/blob/master/bin/postman-updater
# chmod +x /usr/local/bin/postman-updater

Usage

By default, postman-updater assumes that the installation happens in /opt/postman. You can override this by providing a command line flag, -l /your/path. If you are not installing to any system directory, you will not have to use sudo in any of the following commands.

1. Checking for updates

You can check if updates are available:

sudo postman-updater check

Or, with a custom install location:

postman-updater check -l /your/custom/path

2. Installing Postman

You can install Postman to a path:

sudo postman-updater install # by default, installs to /opt/postman

Or, with a custom install location:

postman-updater install -l /your/custom/path

3. Updating Postman

This will update Postman, with default installation directory set to /opt/postman.

sudo postman-updater update

You can change the default location with the -l flag:

postman-updater update -l /your/custom/path

About

A simple bash script to update Postman from the command line (for Linux)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%