← 返回命令列表

Linux command

stash 命令

文本

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

常用示例

Start

stash

Bind

stash --host [127.0.0.1] --port [9999]

Use

stash -c [path/to/config.yml]

Use

stash --cpuprofile [path/to/cpu.prof]

Run

STASH_CONFIG_FILE=[/data/config.yml] stash

Show

stash --version

说明

Stash is an open-source, self-hosted web application written in Go that organizes and serves a personal media library. It indexes video and image collections, scrapes metadata from configured sources (StashDB, ThePornDB, community scrapers), and exposes a rich web UI on http://localhost:9999 with tagging, performers, studios, galleries, statistics, and a GraphQL API. The stash binary launches the HTTP/GraphQL server, schedules background scan, generate, and identify tasks, and persists state to a SQLite database. Plugins extend the server with custom tasks, scrapers, and UI hooks via Python, JavaScript, or shell scripts. Stash is single-user by default but supports password-protected access. FFmpeg and FFprobe are bundled at first run if not already present and are required for transcoding, sprite generation, and previews.

参数

--host _host_
Hostname or interface to bind to (default 0.0.0.0).
--port _port_
TCP port to listen on (default 9999).
-c, --config _file_
Path to the config.yml file. Overrides the default location.
--cpuprofile _file_
Write a Go CPU profile to _file_ for performance analysis.
--nobrowser
Do not automatically open the web UI on first start.
--version
Print Stash version information and exit.
-h, --help
Show available flags and exit.

FAQ

What is the stash command used for?

Stash is an open-source, self-hosted web application written in Go that organizes and serves a personal media library. It indexes video and image collections, scrapes metadata from configured sources (StashDB, ThePornDB, community scrapers), and exposes a rich web UI on http://localhost:9999 with tagging, performers, studios, galleries, statistics, and a GraphQL API. The stash binary launches the HTTP/GraphQL server, schedules background scan, generate, and identify tasks, and persists state to a SQLite database. Plugins extend the server with custom tasks, scrapers, and UI hooks via Python, JavaScript, or shell scripts. Stash is single-user by default but supports password-protected access. FFmpeg and FFprobe are bundled at first run if not already present and are required for transcoding, sprite generation, and previews.

How do I run a basic stash example?

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

What does --host _host_ do in stash?

Hostname or interface to bind to (default 0.0.0.0).