@automattic/vip 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,561 +23,3 @@ For help with contributing to this project, including instructions for local dev
23
23
  ## Analytics
24
24
 
25
25
  By default, we record information about the usage of this tool using an in-house analytics sytem. If you would prefer to opt-out of this data collection, you can do so via the `DO_NOT_TRACK` environment variable. You may either export it in your shell configuration or specify it on the command line (e.g. `DO_NOT_TRACK=1 vip app list`).
26
-
27
- ## Changelog
28
-
29
- ### 2.15.0 (3 Aug 2022)
30
-
31
- - #1067 FORNO-1244: SQL Import: Increase max import size for launched sites to 1GB
32
- - #1064 FORNO-1254: SQL Import: Add multisite primary domain validation
33
- - #1062 [dev-env] Change wizard wording
34
- - #1065 [dev-env] Update default software versions for PHP and Elasticsearch
35
- - #1063 [dev-env] Remove redundant healthchecks
36
- - #1061 [dev-env] Fix duplicate shortcuts
37
-
38
- ### 2.14.0 (19 Jul 2022)
39
-
40
- - #1059 Update engines to show support for npm > 6
41
- - #1058 [dev-env] switch dev-env error during import to warning
42
- - #1057 [dev-env] Update debug instruction example
43
- - #1055 [dev-env] Makes exec attempt to run the task even if env seems to be down
44
-
45
- ### 2.13.1 (20 Jun 2022)
46
-
47
- - #1052 [dev-env] Update/lando compose version
48
- - #1045 README: Fix Typo `VIP CLI` => `VIP-CLI`
49
- - #1048 Switch to GitHub Actions
50
-
51
- ### 2.13.0 (16 Jun 2022)
52
-
53
- - #1046 Add Cache Purge Command
54
- - #1050 [dev-env] Change docs link
55
- - #1047 [dev-env] Bump lando package
56
- - #1044 [dev-env] Fix healthchecks No. 2
57
- - #1043 [dev-env] add docker-compose v2 support
58
- - #1042 [dev-env] Fix search popup during wizard
59
- - #1038 [dev-env] Adds domain validation during sql import
60
- - #1040 [dev-env] track dev-env start time in seconds
61
-
62
- ### 2.12.0 (19 May 2022)
63
-
64
- - #1035 and #1032 Improved publishing checks to publish on npm
65
- - #1037 [dev-env] only record the php version numbers update/clean_php_version
66
- - #999 Add Feature to Support HTTPS/HTTP/NO_PROXY Settings
67
- - #1036 Move DO_NOT_TRACK handling to Analytics lib
68
- - #1033 [dev-env] Bump lando in order to support node 18
69
-
70
- #### Special thanks
71
- frank-cerny for the contribution on #999
72
-
73
- ### 2.11.2 (12 May 2022)
74
-
75
- - Hotfix to use correct production config.json in the NPM published package caused by a different NPM version in the build process.
76
-
77
- ### 2.11.1 (12 May 2022)
78
-
79
- - Hotfix to use correct production config.json in the NPM published package
80
-
81
- ### 2.11.0 (11 May 2022)
82
-
83
- - #1022 [dev-env] Validate docker installed
84
- - #1026 [dev-env] adds tracking to stop subcommand
85
- - #1028 Re-calculate the fileMeta if file gets changed by the searchAndReplace
86
- - #1029 Adds Pendo analytics client
87
- - #1030 [dev-env] Fix failure tracking
88
-
89
- ### 2.10.0 (4 May 2022)
90
-
91
- - #1021 [dev-env] Add login info and documentation link to `dev-env info`
92
- - #1023 [dev-env] Skip the trunk from the prompt about the latest available WordPress versions
93
- - #1019 [dev-env] Unifies lando and other dev-env debug logs
94
- - #1018 [dev-env] enable lando debug on `--debug`
95
- - #1017 [dev-env] Adding tracking for create and destroy sub commands
96
- - #1016 [dev-env] Adding tracking for start sub command
97
- - #1020 [dev-env] More tracking
98
-
99
- ### 2.9.5 (26 April 2022)
100
-
101
- - #1005 [dev-env] updateWordPress image improvements
102
- - #1006 Remove renovate.json
103
- - #1007 Set up CodeQL Scanning
104
- - #1008 WP-CLI: Reattach Reconnect-Related Events After a Successful Reconnection
105
- - #1009 Add ability to choose a PHP image to use
106
- - #1010 [dev-env] Add Enterprise Search, XDebug, phpMyAdmin options to the config wizard.
107
-
108
- ### 2.9.4 (07 April 2022)
109
-
110
- - #996 Clean up lint warnings
111
- - #1001 Fix reconnect event listeners
112
- - #1000 Bump socket.io-client from 4.0.1 to 4.4.1
113
-
114
- ### 2.9.3 (29 March 2022)
115
-
116
- - #995 Add debug call to dev-envs handleCLIException
117
- - #992 Add --debug flag to all commands
118
- - #993 [dev-env] Fix in caching version list.
119
- - #994 Fix typo in error message
120
- - #990 [dev-env] Add check for wp folder map add/php_healthcheck
121
- - #991 Adds optional channing since `progress` can be null as per GraphQL schema
122
- - #989 Fixes unit test error `bsdthread_register error`
123
- - #987 Add support for M1 Macs in the search-replace tests
124
-
125
- ### 2.9.2 (9 March 2022)
126
-
127
- - #980 [dev-env] Fix/tag formatting on stapled images
128
- - #986 Clean the build folder prior to rebuilding it
129
- - #985 Adding webP to the list of accepted extensions for files
130
- - #972 Run tests in Windows Env
131
-
132
- https://github.com/Automattic/vip/releases/tag/v2.9.2
133
-
134
- ### 2.9.1 (2 March 2022)
135
-
136
- - #982 Remove unused dependencies - Fixes Error: Cannot find module 'core-js'
137
- - #978 [dev-env] Added phpmyadmin proxy value
138
-
139
- https://github.com/Automattic/vip/releases/tag/v2.9.1
140
-
141
- ### 2.9.0 (1 March 2022)
142
-
143
- - #966 [dev-env] Dynamic WordPress Image List
144
- - #975 [dev-env] prompt On Unselected Env
145
- - #974 [dev-env] Corrections of text for -h menu in dev-env create
146
- - #973 [dev-env] update Nginx image
147
- - #971 [dev-env] Use custom add user command
148
- - #964 [dev-env] Validate sql on import
149
- - #970 [dev-env] Do not use /tmp as a userConfRoot
150
- - #977 Fix flow errors
151
- - #976 Fix/duplicate shortcut parameter
152
- - #968 Update minimum Node version
153
-
154
- https://github.com/Automattic/vip/releases/tag/v2.9.0
155
-
156
- ### 2.8.2 (27 January 2021)
157
-
158
- - #961 Fixes md5 calculation failing when search-replace is used
159
- - #959 Fixes md5 calculation for SQL Imports on VIPd
160
-
161
- https://github.com/Automattic/vip/releases/tag/v2.8.2
162
-
163
- ### 2.8.0 (25 January 2021)
164
-
165
- - #952 FORNO-1047: Fix SQL Import for compressed files
166
- - #955 Add Error prefix for "Failed to fetch logs" msg
167
- - #946 Add support for the site logs tailing feature
168
- - #953 [dev-env] Updated list of available wordpress images for dev-env
169
- - #933 Update dependency debug to v4.3.3
170
-
171
- https://github.com/Automattic/vip/releases/tag/v2.8.0
172
-
173
- ### 2.7.1 (10 January 2021)
174
-
175
- - #950 Switch to npm-shrinkwrap
176
- - #947 [dev-env] List all dev env alias
177
- - #944 Add `vip whoami` command
178
- - #942 Envvar: Show message when there is an attempt to change the New Relic key.
179
-
180
- https://github.com/Automattic/vip/releases/tag/v2.7.1
181
-
182
- ### 2.7.0 (07 December 2021)
183
-
184
- - #941 [dev-env] Bump lando CLI dependency
185
- - #938 Hide roll back message after SQL Import failure for launched sites
186
- - #936 Sets jest maxWorkers to 4
187
-
188
- https://github.com/Automattic/vip/releases/tag/v2.7.0
189
-
190
- ### 2.6.0 (23 November 2021)
191
-
192
- - #921 [dev-env] Introuces update to change existing environment
193
- - #928 [dev-env] Switch lando to use our fork
194
- - #927 [dev-env] Handles user already exists during sql import
195
- - #925 [dev-env] Fix the issue with dev-env update
196
- - #924 FORNO-985 Increase SQL Import limit for unlaunched sites to 100GB
197
- - #923 FORNO-943 Fixes a bug which prevents displaying SQL Import error messages
198
- - #922 Update eslint-config-wpvip commit hash to c6605d1
199
- - #873 Pin dependencies
200
-
201
- ### 2.5.0 (9 November 2021)
202
-
203
- - #919 [dev-env] Expose lando core logs
204
- - #916 [dev-env] Save instance data state
205
- - #914 [dev-env] update help wording for dev env
206
- - #915 Add warning message when an envvar is set/deleted
207
-
208
- ### 2.4.0 (5 November 2021)
209
-
210
- - #913 [dev-env] No login required for dev-env
211
- - #911 Adds more release instructions
212
-
213
- ### 2.3.1 (2 November 2021)
214
-
215
- - Fixes an issue with the 2.3.0 where the intended changes didn't get published correctly.
216
-
217
- ### 2.3.0 (2 November 2021)
218
-
219
- - #908 [dev-env] Custom user permissions setup
220
- - #897 [dev-env] Primary domain prompt for primary domain redirect
221
- - #902 [dev-env] Delete file permissions
222
- - #900 Clarify CONTRIBUTING guidelines
223
- - #905 Update contribution steps
224
-
225
- ### 2.2.0 (27 October 2021)
226
-
227
- New: Environment variables command
228
-
229
- - #896 Open config envvar command for all customers
230
- - #876 Update envvar list command to only show names
231
- - #879 Add config envvar get and get-all commands
232
- - #875 Temporarily gate access to new config command to VIP staff
233
- - #858 Environment variable CLI commands (list, set, delete)
234
-
235
- Fixes:
236
-
237
- - #901 Don't mark import as failed until restore has completed
238
- - #899 Proxy fix + healthchecks
239
- - #894 support windows db import
240
- - #889 Proxy config change
241
- - #888 mount wordpress code
242
- - #872 Auto flush cache after import and add vipgo user
243
- - #869 Media redirect to production site.
244
- - #885 Make search data persistent between restarts
245
- - #844 Expose DB and expose extra services in info table
246
- - #865 spawn WP-CLI as root to allow for FS operations
247
- - #895 Fix rmdir deprecation warning
248
- - #870 Add the VIP-CLI release process and release schedule
249
-
250
- Dependencies updates:
251
-
252
- - #778 Update dependency ini to v2
253
- - #786 Update dependency keytar to v7
254
- - #884 Update dependency cli-columns to v4
255
- - #887 Update dependency lando to v3.4.3
256
- - #874 Update dependency lando to v3.4.0
257
- - #750 Bump hosted-git-info from 2.8.8 to 2.8.9
258
- - #877 Bump tmpl from 1.0.4 to 1.0.5
259
-
260
- https://github.com/Automattic/vip/releases/tag/v2.2.0
261
-
262
- ### 2.1.0 (16 September 2021)
263
-
264
- - #857 Remove select DB checks
265
- - #864 Adding WordPress versions to dev-env
266
- - #868 persist database data in between container restarts
267
- - #862 Fix lint warnings
268
- - #867 Update dependency lando to v3.3.2
269
- - #863 Add links to CONTRIBUTING and SECURITY
270
- - #855 Add some helpful hints for new command scaffolding
271
- - #856 Adding media import command on dev environment
272
- - #849 Adding SQL import to dev environment
273
- - #854 Updating command descriptions and arguments on dev-env
274
- - #850 Use official memcached image on dev-env
275
- - #853 Enable ssl forwarding on dev-env
276
- - #851 Conditionally disabling statsd on mu-plugins
277
- - #852 Fixing Prettier format annotation typo
278
- - #843 Removing custom wp-config-defaults
279
- - #848 Not using a prefix to all dev environments
280
- - #847 Update dependency lando to v3.3.0
281
- - #840 Use official Elasticsearch image on dev-env
282
- - #845 Fix MariaDB healthcheck
283
- - #846 dev-env: Update error message for directory prompt
284
- - #842 Removing PHP parameter from dev environment
285
- - #839 Use official MariaDB image and enable version selection on dev-env
286
-
287
- https://github.com/Automattic/vip/releases/tag/v2.1.0
288
-
289
- ### 2.0.14 (26 August 2021)
290
-
291
- - Update dependency graphql to v15.5.1 #796
292
- - Update dependency graphql-tag to v2.12.5 #799
293
- - Update dependency debug to v4.3.2 #806
294
- - Remove fake data dev-env commands #830
295
- - Disable statsd by default #831
296
- - Support ES version option #832
297
- - Removing mu-plugins test command #835
298
- - Making PHPMyAdmin optional on dev-env #836
299
- - Patching Docker for Windows in dev-env #837
300
- - enable/disable xdebug #838
301
-
302
- https://github.com/Automattic/vip/releases/tag/v2.0.14
303
-
304
- ### 2.0.13 (19 August 2021)
305
-
306
- - Allow user to run multisite import even if wpSites.nodes doesn't exist. #815
307
- - Bumping version number to 2.0.12 #827
308
- - Path resolving fixes #829
309
- - Send header each time #826
310
- - Sets up a volume for media files #825
311
- - Update dependency chalk to v4.1.2 #813
312
- - Update dependency lando to v3.1.4 #797
313
- - Upgrading statsd container to 0.9.0 #828
314
-
315
- https://github.com/Automattic/vip/releases/tag/v2.0.13
316
-
317
- ### 2.0.12 (13 August 2021)
318
-
319
- - Using new VIP Docker images for dev-env #818
320
- - Bump path-parse from 1.0.6 to 1.0.7 #819
321
- - Increasing dev-env PMA upload limit to 4G #822
322
- - PIE-2890 Fixes issue where user is unable to login after logout #823
323
-
324
- https://github.com/Automattic/vip/releases/tag/v2.0.12
325
-
326
- ### 2.0.11 (5 August 2021)
327
-
328
- - Handle parameter validation in a consistent way #795
329
- - Fix error blocking data sync on CLI sites #810
330
- - Update DB Engine check to reduce false positives #811
331
- - Retrieve the status and steps regardless of the site type. #812
332
- - Dev-Env: Handle relative file paths #802
333
- - Dev-Env: Make dev-env start more resilient #804
334
- - Dev-Env: Validate Path to a component #803
335
- - Dev-Env: Handle multisite = false correctly #809
336
- - Dev-Env: Adds a check for an orphaned proxy container #814
337
- - FORNO-759: Add logged in user details to all Tracks events #801
338
- - FORNO-779: Throttle request to Parker when fetching media import status #808
339
-
340
- https://github.com/Automattic/vip/releases/tag/2.0.11
341
-
342
- ### 2.0.10 (21 June 2021)
343
-
344
- - Adds Media Import Abort subcommand
345
- - Disables enterprise search by default
346
- - Handles numbered slugs correctly
347
- - Unifies print table on start command with other commands
348
- - Drops the isVip requirement for dev-env
349
- - Fixes intermittent fatal error caused due to analytics tracking
350
- - Misc dependency updates
351
-
352
- https://github.com/Automattic/vip/releases/tag/v2.0.10
353
-
354
- ### 2.0.9 (3 June 2021)
355
-
356
- - Enable SQL import for all site types
357
- - Bug fix for analytics errors causing some commands to fail
358
- - Add the full changelog to the readme
359
- - Improved error output by adding debug info and consistent output/error codes
360
- - Misc dependency updates
361
-
362
- https://github.com/Automattic/vip/releases/tag/v2.0.9
363
-
364
- ### 2.0.8 (27 May 2021)
365
-
366
- - [Beta] Media Import: Enable media imports for production WordPress applications
367
- - SQL Import: Enable SQL Import for launched sites
368
- - SQL Import: Enable SQL Import for multisite networks
369
- - SQL Import: Additional input file validation
370
-
371
- https://github.com/Automattic/vip/releases/tag/v2.0.8
372
-
373
- ### 2.0.7 (6 May 2021)
374
-
375
- - SQL Import: Add additional multisite validations
376
- - Update socket.io-client to 4.0.1
377
- - Misc. dependency updates
378
-
379
- https://github.com/Automattic/vip/releases/tag/v2.0.7
380
-
381
- ### 2.0.6 (15 Apr 2021)
382
-
383
- - SQL Import: Add additional checks for site type
384
-
385
- https://github.com/Automattic/vip/releases/tag/v2.0.6
386
-
387
- ### 2.0.5 (8 Mar 2021)
388
-
389
- - Fix a bug when comparing env data to selected environment #697
390
-
391
- https://github.com/Automattic/vip/releases/tag/v2.0.5
392
-
393
- ### 2.0.4 (3 Mar 2021)
394
-
395
- - Bump socket.io-client from 2.3.0 to 2.4.0 (Fixes WP-CLI in node 15+) #679
396
- - Additional SQL import file static validations #669
397
-
398
- https://github.com/Automattic/vip/releases/tag/v2.0.4
399
-
400
- ### 2.0.3 (19 Feb 2021)
401
-
402
- - Improved SQL import validation around the use of TRIGGER
403
-
404
- https://github.com/Automattic/vip/releases/tag/v2.0.3
405
-
406
- ### 2.0.2 (15 Feb 2021)
407
-
408
- - Improved handling of debug output during search & replace
409
- - Updated the vip-search-replace package to ^1.0.13
410
-
411
- https://github.com/Automattic/vip/releases/tag/v2.0.2
412
-
413
- ### 2.0.1 (11 Feb 2021)
414
-
415
- - SQL Import: Improved reporting of server-side failures
416
- - SQL Import: Add ability to skip local validation
417
- - Updated the vip-search-replace package to v1.0.12
418
- - SQL Import: Fix and test for multi-site tables that have more than one digit
419
-
420
- https://github.com/Automattic/vip/releases/tag/v2.0.1
421
-
422
- ### 2.0.0 (2 Feb 2021)
423
-
424
- - Drops support for Node 8
425
- - Added Security Policy
426
- - Added SQL file import feature for new sites
427
- - Added SQL search and replace feature
428
-
429
- https://github.com/Automattic/vip/releases/tag/v2.0.0
430
-
431
- ### 1.12.1 (8 Sep 2020)
432
-
433
- - Updated list of accepted special characters for media files for imports
434
-
435
- https://github.com/Automattic/vip/releases/tag/v1.12.1
436
-
437
- ### 1.12.0 (21 Aug 2020)
438
-
439
- - Added multisite support for media files validation
440
- - Added Tracks for SQL and media file validation events
441
-
442
- https://github.com/Automattic/vip/releases/tag/v1.12.0
443
-
444
- ### 1.11.2 (17 Aug 2020)
445
-
446
- - Added support for multiple nested folders for the media file validation command
447
-
448
- https://github.com/Automattic/vip/releases/tag/v1.11.2
449
-
450
- ### 1.11.1 (17 Aug 2020)
451
-
452
- - Added fix to process the import validation subcommands
453
-
454
- https://github.com/Automattic/vip/releases/tag/v1.11.1
455
-
456
- ### 1.11.0 (17 Aug 2020)
457
-
458
- - Added `vip import validate sql` and `vip import validate files` commands to run static validation checks for SQL and media files for imports
459
-
460
- https://github.com/Automattic/vip/releases/tag/v1.11.0
461
-
462
- ### 1.10.0 (12 Jun 2020)
463
-
464
- - Added support for specifying a SOCKS proxy through the environment variable VIP_PROXY
465
-
466
- https://github.com/Automattic/vip/releases/tag/v1.10.0
467
-
468
- ### 1.9.0 (30 Mar 2020)
469
-
470
- - Added support for [opting out of usage tracking](https://github.com/Automattic/vip/tree/e54d9ee0ce2dd4725ca8718b3aba06db24306ad7#analytics) via `DO_NOT_TRACK` environment variable #547
471
- - Fix interactive commands not working correctly #478
472
- - Show usage information when an unsupported command is entered #527
473
- - Dependency & dev dependency upgrades
474
-
475
- https://github.com/Automattic/vip/releases/tag/v1.9.0
476
-
477
- ### 1.8.0 (25 Sep 2019)
478
-
479
- - Fixes around cancelling commands via Ctrl-C
480
- - Gracefully handle remote command cancellation
481
- - Enhance Rollbar logging for additional use cases
482
-
483
- https://github.com/Automattic/vip/releases/tag/v1.8.0
484
-
485
- ### 1.7.0 (15 Aug 15 2019)
486
-
487
- - Resume long-running WP-CLI commands in case of network interruptions
488
-
489
- https://github.com/Automattic/vip/releases/tag/v1.7.0
490
-
491
- ### 1.6.2 (25 Jul 2019)
492
-
493
- - Corrected some install issues with the 1.6.0/1.6.1 releases.
494
-
495
- https://github.com/Automattic/vip/releases/tag/v1.6.2
496
-
497
- ### 1.6.1 (25 Jul 2019)
498
-
499
- - Intermittent release to test some issues with v1.6.0
500
-
501
- https://github.com/Automattic/vip/releases/tag/v1.6.1
502
-
503
- ### 1.6.0 (25 Jul 2019)
504
-
505
- - We added ability to cancel running commands.
506
- - We fixed an issue with trailing characters such as line breaks affecting use of command output by scripts.
507
- - Various dependancy updates.
508
-
509
- https://github.com/Automattic/vip/releases/tag/v1.6.0
510
-
511
- ### 1.5.0 (15 Jul 2019)
512
-
513
- - Added `--yes` flag for WP-CLI commands to skip confirmation on production environments.
514
- - We fixed the character limit errors raised when running long WP-CLI commands.
515
- - We've added Rollbar to allow us to monitor and address errors
516
- - We updated third party dependencies to newer, more secure versions.
517
-
518
- https://github.com/Automattic/vip/releases/tag/v1.5.0
519
-
520
- ### 1.4.1 (29 Apr 2019)
521
-
522
- - No functional changes, 1.4.0 was already taken on NPM :)
523
-
524
- https://github.com/Automattic/vip/releases/tag/1.4.1
525
-
526
- ### 1.4.0 (29 Apr 2019)
527
-
528
- - Added "environment alias" support (`vip @my-site.env sync`)
529
- - Added support for WP-CLI commands
530
- - Misc. dependency updates
531
-
532
- https://github.com/Automattic/vip/releases/tag/1.4.0
533
-
534
- ### 1.3.0 (1 Feb 2019)
535
-
536
- - We now display information header for every `vip app --app` execution [(#223)](https://github.com/Automattic/vip/pull/223).
537
- - We fixed the logout bug asking the user to login before being able to logout [(#222)](https://github.com/Automattic/vip/pull/222) and we also display a message when a user logout [(#221)](https://github.com/Automattic/vip/pull/221).
538
- - We replaced `inquirer` with `enquirer` [(#229)](https://github.com/Automattic/vip/pull/229).
539
- - We fixed a bug where we didn't check if we can sync to an environment before accessing some information about it [(#230)](https://github.com/Automattic/vip/pull/230).
540
- - We fixed an `EPIPE` bug when hitting `q` in `app list` command [(#225)](https://github.com/Automattic/vip/pull/225).
541
- - We updated third party dependencies to newer, more secure versions.
542
-
543
- https://github.com/Automattic/vip/releases/tag/v1.3.0
544
-
545
- ### 1.2.1 (5 Dec 2018)
546
-
547
- - The `1.2.0` version was containing a bug and we published a patch to fix it. Please use this version instead.
548
-
549
- https://github.com/Automattic/vip/releases/tag/v1.2.1
550
-
551
- ### 1.2.0 (5 Dec 2018)
552
-
553
- - We now display a preview of the `sync` feature with the backup time and the search/replace taking place in your database.
554
- - We now display your mapped domain instead of the placeholder `go-vip.co` domain in `vip app` and `vip app list`.
555
- - We now display a better message when an app does not have any non-production environments.
556
- - We fixed a bug where the help menu was not showing until you're logged in.
557
- - We updated third party dependencies to newer, more secure versions.
558
-
559
- https://github.com/Automattic/vip/releases/tag/v1.2.0
560
-
561
- ### 1.1.1 (1 Nov 2018)
562
-
563
- - Updates dependencies to fix a bug introduced by sub-dependencies.
564
-
565
- https://github.com/Automattic/vip/releases/tag/v1.1.1
566
-
567
- ### 1.1.0 (12 Jul 2018)
568
-
569
- - We now correctly report errors when `vip sync` fails. Previously, this would incorrectly report that a sync was run previously.
570
- - We fixed permissions issues for some users with `admin` access for repos. They were unable to properly view and access applications.
571
- - We now display more applications in `vip app list` (up to 100!) and have made it easier to browse through a large list thanks to (`$PAGER`|`less`) support. Previously you would only see the first 10 applications in your account.
572
-
573
- https://github.com/Automattic/vip/releases/tag/v1.1.0
574
-
575
- ### 1.0.0 (2 Jul 2018)
576
-
577
- The first release!
578
-
579
- - `vip app list`: view a list of all your applications.
580
- - `vip app`: view details about one of your applications.
581
- - `vip sync`: trigger [a data sync](https://vip.wordpress.com/2018/03/28/data-sync-on-vip-go/) to synchronize data from your production environment to non-production environments.
582
-
583
- https://github.com/Automattic/vip/releases/tag/v1.0.0
@@ -90,7 +90,7 @@ services:
90
90
  environment:
91
91
  UPLOAD_LIMIT: 4G
92
92
  <% } %>
93
- <% if ( enterpriseSearchEnabled ) { %>
93
+ <% if ( elasticsearchEnabled ) { %>
94
94
  vip-search:
95
95
  type: compose
96
96
  services:
@@ -147,7 +147,7 @@ services:
147
147
  mu-plugins: {}
148
148
  <% } %>
149
149
 
150
- <% if ( clientCode.mode == 'image' ) { %>
150
+ <% if ( appCode.mode == 'image' ) { %>
151
151
  client-code:
152
152
  type: compose
153
153
  services:
@@ -205,7 +205,7 @@ tooling:
205
205
  <% } else { %>
206
206
  - <%= muPlugins.dir %>:/wp/wp-content/mu-plugins
207
207
  <% } %>
208
- <% if ( clientCode.mode == 'image' ) { %>
208
+ <% if ( appCode.mode == 'image' ) { %>
209
209
  - type: volume
210
210
  source: clientcode_clientmuPlugins
211
211
  target: /wp/wp-content/client-mu-plugins
@@ -243,12 +243,12 @@ tooling:
243
243
  volume:
244
244
  nocopy: true
245
245
  <% } else { %>
246
- - <%= clientCode.dir %>/client-mu-plugins:/wp/wp-content/client-mu-plugins
247
- - <%= clientCode.dir %>/images:/wp/wp-content/images
248
- - <%= clientCode.dir %>/languages:/wp/wp-content/languages
249
- - <%= clientCode.dir %>/plugins:/wp/wp-content/plugins
250
- - <%= clientCode.dir %>/private:/wp/wp-content/private
251
- - <%= clientCode.dir %>/themes:/wp/wp-content/themes
252
- - <%= clientCode.dir %>/vip-config:/wp/wp-content/vip-config
246
+ - <%= appCode.dir %>/client-mu-plugins:/wp/wp-content/client-mu-plugins
247
+ - <%= appCode.dir %>/images:/wp/wp-content/images
248
+ - <%= appCode.dir %>/languages:/wp/wp-content/languages
249
+ - <%= appCode.dir %>/plugins:/wp/wp-content/plugins
250
+ - <%= appCode.dir %>/private:/wp/wp-content/private
251
+ - <%= appCode.dir %>/themes:/wp/wp-content/themes
252
+ - <%= appCode.dir %>/vip-config:/wp/wp-content/vip-config
253
253
  <% } %>
254
254
  <% } %>
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ *
5
+ * @format
6
+ */
7
+
8
+ /**
9
+ * External dependencies
10
+ */
11
+
12
+ /**
13
+ * Internal dependencies
14
+ */
15
+ "use strict";
16
+
17
+ var _tracker = require("../lib/tracker");
18
+
19
+ var _command = _interopRequireDefault(require("../lib/cli/command"));
20
+
21
+ var _format = require("../lib/cli/format");
22
+
23
+ var _software = require("../lib/config/software");
24
+
25
+ var _userError = _interopRequireDefault(require("../lib/cli/userError"));
26
+
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+
29
+ // Command examples
30
+ const examples = [{
31
+ usage: 'vip config software get wordpress --format json',
32
+ description: 'Read current software settings for WordPress in JSON format'
33
+ }, {
34
+ usage: 'vip config software get',
35
+ description: 'Read current software settings for all components'
36
+ }];
37
+ (0, _command.default)({
38
+ appContext: true,
39
+ appQuery: _software.appQuery,
40
+ appQueryFragments: _software.appQueryFragments,
41
+ envContext: true,
42
+ wildcardCommand: true,
43
+ format: true,
44
+ usage: 'vip config software get <wordpress|php|nodejs|muplugins>'
45
+ }).examples(examples).argv(process.argv, async (arg, opt) => {
46
+ var _opt$env;
47
+
48
+ const trackingInfo = {
49
+ environment_id: (_opt$env = opt.env) === null || _opt$env === void 0 ? void 0 : _opt$env.id,
50
+ args: JSON.stringify(arg)
51
+ };
52
+ await (0, _tracker.trackEvent)('config_software_get_execute', trackingInfo);
53
+ const {
54
+ softwareSettings
55
+ } = opt.env;
56
+
57
+ if (softwareSettings === null) {
58
+ throw new _userError.default('Software settings are not supported for this environment.');
59
+ }
60
+
61
+ let chosenSettings = [];
62
+
63
+ if (arg.length > 0) {
64
+ const component = arg[0];
65
+
66
+ if (!softwareSettings[component]) {
67
+ throw new _userError.default(`Software settings for ${component} are not supported for this environment.`);
68
+ }
69
+
70
+ chosenSettings = [softwareSettings[component]];
71
+ } else {
72
+ chosenSettings = [softwareSettings.wordpress, softwareSettings.php, softwareSettings.muplugins, softwareSettings.nodejs];
73
+ }
74
+
75
+ const preFormatted = chosenSettings.filter(softwareSetting => !!softwareSetting).map(softwareSetting => {
76
+ let version = softwareSetting.current.version;
77
+
78
+ if (softwareSetting.slug === 'wordpress' && !softwareSetting.pinned) {
79
+ version += ' (managed updates)';
80
+ }
81
+
82
+ return {
83
+ name: softwareSetting.name,
84
+ slug: softwareSetting.slug,
85
+ version
86
+ };
87
+ });
88
+ console.log((0, _format.formatData)(preFormatted, opt.format));
89
+ await (0, _tracker.trackEvent)('config_software_get_success', trackingInfo);
90
+ });