HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

miniserve — Simple HTTP file server. More information: <https://github.com/svenstaro/miniserve#usage>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
simpleserverhttpcommandminiserveclifilemore

Problem

How to use the miniserve command: Simple HTTP file server. More information: <https://github.com/svenstaro/miniserve#usage>.

Solution

miniserve — Simple HTTP file server. More information: <https://github.com/svenstaro/miniserve#usage>.

Serve a directory:
miniserve {{path/to/directory}}


Serve a single file:
miniserve {{path/to/file}}


Serve a directory using HTTP basic authentication:
miniserve {{[-a|--auth]}} {{username}}:{{password}} {{path/to/directory}}

Code Snippets

Serve a directory

miniserve {{path/to/directory}}

Serve a single file

miniserve {{path/to/file}}

Serve a directory using HTTP basic authentication

miniserve {{[-a|--auth]}} {{username}}:{{password}} {{path/to/directory}}

Context

tldr-pages: common/miniserve

Revisions (0)

No revisions yet.