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 and 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
-c, --configPath to config file
-v, --versionfalsePrint version and exit
--helpfalseHelp for snipraw

Snippet directory, title, description, log level, and other app settings live in the config file, not as CLI flags.

Examples

bash
# Run with default host/port, reading config for everything else
snipraw -c ~/.config/snipraw/config.yaml

# Run on a different port
snipraw -c ~/.config/snipraw/config.yaml --port 8080

# Print the version
snipraw -v