npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@thiagobrg60/ttkdl-cli

v1.1.3

Published

TikTok video downloader CLI. Download one or multiple TikTok videos directly from URLs with configurable save paths and concurrent downloads.

Readme

📝 Description

TTKDL-CLI is a lightweight command-line tool for downloading TikTok videos directly from one or multiple URLs. It lets you configure download paths, control concurrent download limits, and set persistent default folders for saving videos across sessions.

🚀 Features

  • Download one or multiple TikTok videos from URLs (any URL format, full or short).
  • Concurrent downloads (up to 5 videos at a time).
  • Custom output paths or persistent default save folders.
  • Simple and intuitive command-line interface.

💻 Technologies

  • Node.js (runtime for the CLI)
  • JavaScript (ES Modules)

⚙️ Prerequisites

Before using the CLI, make sure you have installed:

  • Node.js (version 18.x or higher)
  • npm (Node.js package manager)

To check if you have Node.js and npm installed, run:

node -v
npm -v

If you don't have Node.js installed, you can download it here: https://nodejs.org.

🛠️ Installation

You can run the CLI either by installing it globally or using npx:

Global Installation

npm install -g @thiagobrg60/ttkdl-cli

After installing, the ttkdl command will be available globally in your terminal.

Using npx (without installing)

npx @thiagobrg60/ttkdl-cli "https://www.tiktok.com/@example/video/123456789"

📖 Usage

Single Download

Download a single TikTok video:

# Single download with full URL
ttkdl "https://www.tiktok.com/@example/video/123456789"

# Single download with short URL
ttkdl "https://vm.tiktok.com/example"

Multiple Downloads

Download multiple videos at once:

# Multiple downloads with mixed URLs
ttkdl "https://www.tiktok.com/@example/video/123456789" "https://vt.tiktok.com/example-2" "https://vm.tiktok.com/example-3"

Custom Output Path

Specify a custom save location for a single download session:

ttkdl "https://vt.tiktok.com/example" -o "./my/folder"

Maximum Concurrent Downloads

Set the number of videos to download simultaneously (max: 5):

ttkdl "https://vm.tiktok.com/example-1" "https://vt.tiktok.com/example-2" -m 5

Default Save Location

Configure a persistent default folder for all downloads:

ttkdl config -r "C:/default/videos/folder"

🎯 Command Reference

Global Commands

ttkdl [options]

| Arguments / Options | Description | |---------------------|-------------------------------| | -h, --help | Shows the help message | | -v, --version | Shows the current CLI version |

Download Commands

ttkdl <urls> [options]

| Arguments / Options | Description | Default | |-----------------------|------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------| | <urls> | One or more valid TikTok URLs (e.g., https://vt.tiktok.com/example) | — | | -o, --output <path> | Sets the save path for videos (one-time, optional) | Windows: C:/Users/<username>Linux: /home/<username>macOS: /Users/<username> | | -m, --max <number> | Sets the number of videos to download simultaneously (max 5, optional) | 3 |

Configuration Commands

ttkdl config [options]

| Arguments / Options | Description | Default | |------------------------|---------------------------------------------------------------- |--------------------------------------------------------------------------------------------------| | -r, --root <path> | Sets the default folder where videos will be saved (persistent) | Windows: C:/Users/<username>Linux: /home/<username>macOS: /Users/<username> |

🤝 Contributing

Contributions are welcome! To contribute to the project, follow these steps:

  1. Fork the repository.

  2. Create a branch for your feature or change: git checkout -b your-branch-name.

  3. Make your changes, add and commit: git add . and git commit -m 'commit message'.

  4. Push your changes to the forked repository: git push origin your-branch-name.

  5. Create a pull request on GitHub to the main repository.

💡 If you find a bug or have a feature request, please open an Issue on GitHub.

⚠️ Disclaimer

This is an open-source command-line tool developed for educational and technical demonstration purposes, focusing on web automation, CLI design, and media handling.

Important:

  • The tool is intended to interact only with publicly accessible resources.
  • Any use must comply with the Terms of Service, copyright laws, and policies of the respective platforms.
  • It is not intended for large-scale, automated, or commercial redistribution of third-party content.
  • The author assumes no responsibility for misuse of this software.

This project is not affiliated with, endorsed by, or supported by TikTok or any other platform.

📬 Contact

If you have any questions, feel free to contact me via email:

📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.

⭐ If this project helped you, consider leaving a star on the repository!