← 返回命令列表

Linux command

miniserve 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Serve current directory

miniserve .

Serve specific directory

miniserve [/path/to/dir]

Serve single file

miniserve [file.zip]

Custom port

miniserve -p [8080] .

Enable upload

miniserve -u .

With authentication

miniserve -a [user:pass] .

说明

miniserve is a simple file server. It serves files over HTTP with minimal setup. The tool supports uploads, authentication, and QR codes. Written in Rust for performance.

参数

-p _PORT_
Port number.
-u
Enable uploads.
-a _CREDS_
Basic auth (user:pass).
-i _ADDR_
Interface to bind.
--help
Display help information.

FAQ

What is the miniserve command used for?

miniserve is a simple file server. It serves files over HTTP with minimal setup. The tool supports uploads, authentication, and QR codes. Written in Rust for performance.

How do I run a basic miniserve example?

Run `miniserve .` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _PORT_ do in miniserve?

Port number.