New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dub-cli

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dub-cli

A CLI for easily shortening URLs with the Dub.co API.

  • 0.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
Source

dub-cli

A CLI for easily shortening URLs with the Dub.co API.

https://github.com/user-attachments/assets/2ce9fe51-68ab-4e6d-b08d-4da09c17f90e

Available Commands

CommandDescription
dub loginLog into the DUB platform
dub configSee your configured workspace credentials
dub domainsConfigure your workspace domain
dub shorten [url] [key]Create a short link. You can preemptively pass the URL and the generated short link key, or go through the CLI prompts.
dub links [options]Search for links in your Dub workspace. Available options include: -s, --search <search> to search for a link by name, or -l, --limit <limit> to limit the number of links returned (default is 10).
dub help [command]Display help for a specific command

Running Locally for Development

  1. Clone the repository, install dependencies and navigate to the cli folder:
    cd packages/cli
    
  2. Build the package in watch mode:
    pnpm dev
    
  3. In a separate terminal, navigate to the cli folder again and run an available command:
    pnpm start [command]
    
  4. See all available commands and options:
    pnpm start help
    

Testing Production-like Setup

Warning If you have previously installed dub-cli globally, uninstall it first to avoid conflicts

  1. Clone the repository, install dependencies and navigate to the cli folder:
    cd packages/cli
    
  2. Build the package:
    pnpm build
    
  3. Link the package globally:
     npm link
    
  4. Verify the installation:
     dub -v
    
  5. Run commands:
    dub [command]
    

Keywords

FAQs

Package last updated on 23 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc