4.0.0 • Published 3 months ago
wp-salts-cli v4.0.0
wp-salts-cli
Generate WordPress salts right in your shell, even when offline. Supports plain-text output as well as DotEnv, PHP, JSON, or YAML.
Installation
npm install wp-salts-cli -g
Usage
You can now use the wp-salts
command to output WordPress salts:
Examples:
# Standard usage
wp-salts
# Output as DotEnv
wp-salts --dotenv
# Output specific strings as YAML
wp-salts SECURE_AUTH_KEY SECURE_AUTH_SALT --yaml
# Combine short-form flags
wp-salts -Pbul 128
Options
Running wp-salts --help
list available flags
-V, --version output the version number
-D, --dotenv output as DotENV
-J, --json output as JSON
-P, --php output as PHP
-Y, --yaml output as YAML
-b, --break add line-breaks before and after the result
-i, --indent <int> indentation level for JSON output
-l, --length <int> length of the salt (default: 64)
-s, --sort sort keys alphabetically
-u, --ugly don't pretty-print JSON or PHP output
-h, --help display help for command
Note: The minimum length of each salt is 8-bit (64 characters)
Related
License
This work is licensed under The MIT License
4.0.0
3 months ago
3.0.3
1 year ago
3.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
1.4.0
3 years ago
1.3.4
3 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.2
4 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago