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 --helpAvailable flags and options are listed below.
| Flag | Default | Description |
|---|---|---|
--host | 127.0.0.1 | Host to bind to |
--port | 8245 | Port to bind to |
-c, --config | — | Path to config file |
-v, --version | false | Print version and exit |
--help | false | Help 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