gopass [options] [length]
-u, --upper Use uppercase characters
-l, --lower Use lowercase characters
-s, --symbols Use symbols
-n, --numbers Use numbers
-f, --file [file] Save password to a file (requires filename argument)
-h, --help Display this help message
gopass -ulsn -f ./example.txt 16
This generates a 16-character password using uppercase, lowercase, symbols, and numbers.
The password is printed and also appended to "./example.txt".