You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,41 @@ Run from your project root (the directory that contains `package.json` with your
18
18
npx wp-deployer
19
19
```
20
20
21
+
Show CLI help or version:
22
+
23
+
```sh
24
+
npx wp-deployer --help
25
+
npx wp-deployer --version
26
+
```
27
+
21
28
Or add a script to `package.json` and run it:
22
29
23
30
```sh
24
31
npm run wpdeploy
25
32
```
26
33
34
+
## SVN authentication
35
+
36
+
wp-deployer is intended for **deploying from your own computer** to WordPress.org SVN. It does **not** store or read an SVN password.
37
+
38
+
***`username`** in `wpDeployer` is passed to `svn` as `--username` only.
39
+
***Passwords** are handled entirely by your **Subversion client** (prompt in the terminal and/or the **OS keychain** / SVN credential cache, depending on your setup).
40
+
* The first time you deploy (or after credentials expire), SVN may **ask for your password**. Later runs often **do not prompt**, because SVN reuses **cached** credentials—that is normal and secure on a personal machine.
41
+
* Follow [WordPress.org’s current documentation](https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/) for account access.
42
+
43
+
On a **shared** computer, review SVN’s credential storage and clear saved auth when you are done if needed.
44
+
27
45
## Settings
28
46
29
47
***slug** : Plugin or theme slug; Default: `name` value in `package.json`
30
48
***username** : WordPress repository username; This is required.
31
-
***repoType**: Repo type; `plugin` or `theme`; Default: `plugin`
49
+
***repoType**: Repo type; `plugin` or `theme`; Default: `plugin`.
32
50
***buildDir**: The directory where your theme or plugin exists as you want it on the repo. Default: `dist`
33
51
***deployTrunk**: Whether to deploy to trunk. This could be set to false to only commit the assets directory. Applies for `plugin` only; Default: `true`
34
52
***deployTag**: Whether to create a tag for this version from trunk. Set to `false` to skip tagging. Applies for `plugin` only; Default: `true`
35
53
***deployAssets**: Whether to deploy assets. Applies for `plugin` only; Default: `false`
36
54
***assetsDir**: The directory where your plugins assets are kept; Default: `.wordpress-org`
55
+
***tmpDir**: Parent directory for the SVN working copy (`slug` is appended). Default: system temp directory from `os.tmpdir()` (not hard-coded `/tmp`).
37
56
***earlierVersion**: Last released version. Applies for `theme` only; This is required if `repoType` is `theme`.
0 commit comments