Forrest logo
tool overview
On this page you find all important commands for the CLI tool clash. If the command you are looking for is missing please ask our AI.

clash

Clash is a powerful command line tool for macOS, Windows, and Linux that allows you to create and manage network proxies. It is designed specifically for bypassing internet censorship and improving privacy and security when accessing the web.

With Clash, you can configure and run various proxy protocols, including Shadowsocks, V2Ray, and Trojan, among others. It supports both HTTP and SOCKS5 proxy protocols, providing flexibility and compatibility with different applications and devices.

Notable features of Clash include:

  1. Rule-based routing: Clash allows you to define custom routing rules based on the requested domain, IP address, or other criteria. This feature enables you to selectively route traffic through different proxies, allowing you to bypass restrictions or optimize network performance.

  2. Traffic shaping: Clash provides options for traffic shaping and bandwidth control, allowing you to manage and prioritize network traffic based on your preferences.

  3. Smart rule matching: Clash supports advanced rule matching capabilities, such as wildcard domain matching, regular expressions, and geographical IP-based routing. This flexibility enables fine-grained control over proxy selection and traffic routing.

  4. Subscription support: Clash can regularly fetch and update proxy configurations from remote subscription URLs, making it convenient to maintain and switch between different proxy providers.

  5. Extensibility: Clash supports plugin extensions that allow you to enhance its functionality. For example, you can install plugins to integrate with popular tools like Surge, Privoxy, or integrate custom Lua scripts for advanced customization.

Clash is widely used by individuals, particularly in regions with internet censorship, as well as by developers and network administrators for network analysis and testing purposes. Its command line interface provides great control and flexibility when managing proxies and network connections.

List of commands for clash:

  • clash:tldr:26f44 clash: Specify a configuration [f]ile.
    $ clash -f ${path-to-configuration_file}
    try on your machine
    explain this command
  • clash:tldr:e601d clash: Specify a configuration [d]irectory.
    $ clash -d ${path-to-directory}
    try on your machine
    explain this command
tool overview