Skip to content

A simple command line tool to manipulate URLs, made with GO.

License

Notifications You must be signed in to change notification settings

vijay-varadarajan/URLActions

Repository files navigation

URLACTIONS

A simple command line tool to perform actions such as check validity, shorten and generate QR code for URLs. This is written in GO.

Setup:

  1. Download the latest release from the Releases
  2. Extract the contents of the zip file
For macOS and Linux:
  1. Open the terminal in root access and navigate to the extracted folder

  2. Run the following command to install the tool:

    chmod +x install.sh
    ./install.sh
For Windows:
  1. Open Command Prompt in administrator mode and navigate to the extracted folder

  2. Run the following command to install the tool:

    install.bat
  3. The tool is now installed and ready to use

Usage:

urlactions -<action> "<url>" [-save [-filename <filename>]]

If macOS: Use urlcli instead of urlactions command

Actions:

Validate URL

  • -validate - Validate the URL

    Example: urlactions -validate "https://www.google.com"

    Checks if URL is valid and if server is reachable. The validation result is displayed on the console.

Shorten URL:

  • -shorten - Shorten the URL

    Example: urlactions -shorten "https://www.google.com"

    Shortened URLs cannot be saved to a file. They are copied to the clipboard automatically.

Generate QR Code:

  • -qrcode - Generate QR Code for the URL

    Example: urlactions qrcode "https://www.google.com"

    To save the QR Code to a file with default name, use the -save option

    Example: urlactions qrcode "https://www.google.com" -save

    (The file will be saved as domain_name.png by default)

    To save the QR Code to a file with a custom name, use the -save and -filename options

    Example: urlactions qrcode "https://www.google.com" -save -filename "google"

    (The file will be saved as google.png)

    Files are saved in PNG format by default.

Version:

  • -version - Display the version of the application

    Example: urlactions -version

Help:

  • -help - Display the help message

    Example: urlactions -help