Skip to content

Command Line

Snipraw's CLI is a simple one level command with no subcommands. Use the --help flag to see the full list of flags amd options.

Available flags and options

sh
snipraw --help

Available flags and options are listed below.

FlagDefaultDescription
--host127.0.0.1Host to bind to
--port8245Port to bind to
--dirDirectory to serve snippets from
--log-levelinfolog level
--configPath to config file
--help, -hfalsehelp for snipraw
--help, -vfalseversion for snipraw

Examples

bash
# Run with a specific directory
snipraw --dir ~/snippets

# Run on a different port
snipraw --dir ~/snippets --port 8080

# Run with a custom config file
snipraw --config /etc/snipraw/config.toml