
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
shortenit-cli
Advanced tools
A command-line interface tool for the Shortenit URL shortener service. Create shortened URLs, expand them back to original URLs, and generate QR codes - all from your terminal.
npm install -g shortenit-cli
# Clone the repository
git clone https://github.com/shortenit/shortenit-cli
cd shortenit-cli
# Install dependencies
npm install
# Build the project
npm run build
# Link globally (optional)
npm link
On first run, the CLI will prompt you to configure your backend URL and API Key:
shortenit
Or manually configure:
shortenit config
shortenit config - Setup or update configurationshortenit config --show - Display current configurationshortenit config --reset - Reset configurationThe configuration is stored locally using conf and persists between sessions.
Basic usage:
shortenit short https://example.com/very/long/url
With custom alias:
shortenit short https://example.com --custom-alias my-link
With expiration (in days):
shortenit short https://example.com --expiration-days 7
Generate QR code in terminal:
shortenit short https://example.com --print-qr
Save QR code to Downloads folder:
shortenit short https://example.com --save-qr
Combine multiple options:
shortenit short https://example.com \
--custom-alias my-link \
--expiration-days 30 \
--print-qr \
--save-qr
Retrieve the original URL from a shortened link:
shortenit expand abc123
Or with full URL:
shortenit expand https://short.link/abc123
Basic usage:
shortenit delete abc123
Or with full URL:
shortenit delete https://short.link/abc123
Delete without confirmation:
shortenit delete https://short.link/abc123 --force
Update the title:
shortenit edit abc123 --title "New Title"
Change the custom alias:
shortenit edit abc123 --custom-alias newcode
Update expiration:
shortenit edit abc123 --expiration-days 30
Remove expiration:
shortenit edit abc123 --clear-expiration
Deactivate a link:
shortenit edit abc123 --inactive
Reactivate a link:
shortenit edit abc123 --active
Combine multiple updates:
shortenit edit abc123 --title "Updated Title" --expiration-days 60 --active
Display the most 10 recent shortened links:
shortenit list
Display all the shortened links:
shortenit list-all
View all available commands:
shortenit --help
View help for a specific command:
shortenit short --help
shortenit expand --help
short <url>Create a shortened link.
Options:
-c, --custom-alias <string> - Custom alias for the short URL-e, --expiration-days <number> - Number of days until expiration-p, --print-qr - Print QR code to terminal-s, --save-qr - Save QR code to Downloads folderexpand <url>Get the original URL from a shortened link.
delete <url>Delete a shortened link.
Options:
-f, --force - Force deletion without confirmationedit <url>Edit a shortened link.
Options:
-t, --title <string> - Update the title-c, --custom-alias <string> - Update the custom alias-e, --expiration-days <number> - Update expiration days--clear-expiration - Remove expiration date--active - Set link as active--inactive - Set link as inactivelistList 10 recent shortened links.
list-allList all shortened links.
configManage configuration settings.
Options:
--reset - Reset configuration--show - Show current configurationshortenit-cli/
├── src/
│ ├── index.ts # Main entry point
│ ├── commands/
│ │ ├── ShortCommand.ts # URL shortening command
│ │ ├── ExpandCommand.ts # URL expansion command
│ │ ├── EditCommand.ts # URL editing command
│ │ ├── DeleteCommand.ts # URL deletion command
│ │ └── ListCommand.ts # URL listing command
│ ├── config/
│ │ └── ConfigManager.ts # Configuration management
│ └── services/
│ ├── ApiService.ts # API communication
│ └── QRCodeService.ts # QR code generation
├── package.json
├── tsconfig.json
└── README.md
npm run build - Compile TypeScript to JavaScriptnpm run dev - Run in development mode with ts-nodenpm start - Run the compiled JavaScriptRuntime:
commander - CLI frameworkaxios - HTTP client for API callschalk - Terminal string stylinginquirer - Interactive command-line promptsora - Terminal spinnersqrcode - QR code generationqrcode-terminal - QR code display in terminalconf - Configuration managementtable - Table formatting for displaying URL listsDevelopment:
typescript - TypeScript compiler@types/node - Node.js type definitions@types/qrcode - QRCode type definitions@types/qrcode-terminal - QRCode Terminal type definitionsMIT
Made with ❤️ for the Shortenit project
FAQs
CLI tool for Shortenit URL shortener
We found that shortenit-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.