@swell/cli 1.0.2 → 2.0.1-alpha.2

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.
Files changed (105) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +2 -140
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +7 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +7 -0
  7. package/dist/app-command.d.ts +22 -0
  8. package/dist/app-command.js +45 -0
  9. package/dist/commands/app/_pull.d.ts +8 -0
  10. package/dist/commands/app/_pull.js +45 -0
  11. package/dist/commands/app/_uninstall.d.ts +12 -0
  12. package/dist/commands/app/_uninstall.js +45 -0
  13. package/dist/commands/app/info.d.ts +15 -0
  14. package/dist/commands/app/info.js +92 -0
  15. package/dist/commands/app/install.d.ts +17 -0
  16. package/dist/commands/app/install.js +177 -0
  17. package/dist/commands/app/push.d.ts +17 -0
  18. package/dist/commands/app/push.js +158 -0
  19. package/dist/commands/app/version.d.ts +18 -0
  20. package/dist/commands/app/version.js +156 -0
  21. package/dist/commands/app/watch.d.ts +15 -0
  22. package/dist/commands/app/watch.js +110 -0
  23. package/dist/commands/create/app.d.ts +21 -0
  24. package/dist/commands/create/app.js +210 -0
  25. package/dist/commands/create/content.d.ts +19 -0
  26. package/dist/commands/create/content.js +87 -0
  27. package/dist/commands/create/function.d.ts +25 -0
  28. package/dist/commands/create/function.js +191 -0
  29. package/dist/commands/create/index.d.ts +6 -0
  30. package/dist/commands/create/index.js +34 -0
  31. package/dist/commands/create/model.d.ts +19 -0
  32. package/dist/commands/create/model.js +87 -0
  33. package/dist/commands/create/notification.d.ts +25 -0
  34. package/dist/commands/create/notification.js +170 -0
  35. package/dist/commands/login.d.ts +22 -0
  36. package/dist/commands/login.js +77 -0
  37. package/dist/commands/logout.d.ts +8 -0
  38. package/dist/commands/logout.js +45 -0
  39. package/dist/commands/logs.d.ts +23 -0
  40. package/dist/commands/logs.js +207 -0
  41. package/dist/commands/switch.d.ts +10 -0
  42. package/dist/commands/switch.js +41 -0
  43. package/dist/commands/whoami.d.ts +7 -0
  44. package/dist/commands/whoami.js +24 -0
  45. package/dist/create-collection-command.d.ts +26 -0
  46. package/dist/create-collection-command.js +97 -0
  47. package/dist/create-command.d.ts +16 -0
  48. package/dist/create-command.js +59 -0
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +1 -0
  51. package/dist/lib/api.d.ts +13 -0
  52. package/dist/lib/api.js +117 -0
  53. package/dist/lib/app-config.d.ts +29 -0
  54. package/dist/lib/app-config.js +127 -0
  55. package/dist/lib/apps/app-config.d.ts +42 -0
  56. package/dist/lib/apps/app-config.js +167 -0
  57. package/dist/lib/apps/index.d.ts +67 -0
  58. package/dist/lib/apps/index.js +167 -0
  59. package/dist/lib/apps/paths.d.ts +18 -0
  60. package/dist/lib/apps/paths.js +54 -0
  61. package/dist/lib/bundle.d.ts +1 -0
  62. package/dist/lib/bundle.js +40 -0
  63. package/dist/lib/config.d.ts +37 -0
  64. package/dist/lib/config.js +131 -0
  65. package/dist/lib/constants.d.ts +5 -0
  66. package/dist/lib/constants.js +17 -0
  67. package/dist/lib/create/content.d.ts +23 -0
  68. package/dist/lib/create/content.js +40 -0
  69. package/dist/lib/create/function.d.ts +17 -0
  70. package/dist/lib/create/function.js +36 -0
  71. package/dist/lib/create/index.d.ts +13 -0
  72. package/dist/lib/create/index.js +20 -0
  73. package/dist/lib/create/model.d.ts +22 -0
  74. package/dist/lib/create/model.js +30 -0
  75. package/dist/lib/create/notification.d.ts +25 -0
  76. package/dist/lib/create/notification.js +1 -0
  77. package/dist/lib/info.d.ts +38 -0
  78. package/dist/lib/info.js +91 -0
  79. package/dist/lib/logs/index.d.ts +23 -0
  80. package/dist/lib/logs/index.js +88 -0
  81. package/dist/lib/logs/line-output.d.ts +5 -0
  82. package/dist/lib/logs/line-output.js +13 -0
  83. package/dist/lib/logs/output.d.ts +7 -0
  84. package/dist/lib/logs/output.js +8 -0
  85. package/dist/lib/logs/table-output.d.ts +11 -0
  86. package/dist/lib/logs/table-output.js +128 -0
  87. package/dist/lib/sessions.d.ts +9 -0
  88. package/dist/lib/sessions.js +110 -0
  89. package/dist/lib/stores.d.ts +63 -0
  90. package/dist/lib/stores.js +173 -0
  91. package/dist/lib/style.d.ts +24 -0
  92. package/dist/lib/style.js +29 -0
  93. package/dist/lib/swell-function-wrapper.d.ts +88 -0
  94. package/dist/lib/swell-function-wrapper.js +302 -0
  95. package/dist/remote-app-command.d.ts +36 -0
  96. package/dist/remote-app-command.js +367 -0
  97. package/dist/swell-command.d.ts +21 -0
  98. package/dist/swell-command.js +43 -0
  99. package/oclif.manifest.json +1085 -0
  100. package/package.json +81 -43
  101. package/LICENSE +0 -674
  102. package/dist/bin/multipart-parser-85ef9626.js +0 -456
  103. package/dist/bin/swell-0f71f07d.js +0 -30670
  104. package/dist/bin/swell.js +0 -24
  105. package/dist/man/swell.1 +0 -85
package/dist/bin/swell.js DELETED
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- export { s as default } from './swell-0f71f07d.js';
4
- import 'node:assert';
5
- import 'node:child_process';
6
- import 'node:async_hooks';
7
- import 'node:util';
8
- import 'node:process';
9
- import 'node:os';
10
- import 'node:tty';
11
- import 'node:fs';
12
- import 'node:path';
13
- import 'node:stream';
14
- import 'node:string_decoder';
15
- import 'node:buffer';
16
- import 'node:events';
17
- import 'node:url';
18
- import 'node:http';
19
- import 'node:https';
20
- import 'node:zlib';
21
- import 'node:net';
22
- import 'node:readline';
23
- import 'node:constants';
24
- import 'node:crypto';
package/dist/man/swell.1 DELETED
@@ -1,85 +0,0 @@
1
- .TH "SWELL" "1" "May 2023" "1.0.2"
2
- .SH "NAME"
3
- \fBswell\fR \- CLI to the Swell platform
4
- .TS
5
- tab(|) nowarn;
6
- cx.
7
- T{
8
- .P
9
- swell \- Interact with the Swell platform directly from your command\-line\.
10
-
11
- T}
12
- .TE
13
- .SH SYNOPSIS
14
- .P
15
- \fBswell [command] [options]\fP
16
- .P
17
- \fBswell [\-\-version] [\-V]\fP
18
- .SH DESCRIPTION
19
- .P
20
- A toolbelt for Swell app development\.
21
- .SH EXAMPLES
22
- .P
23
- See README\.md for more examples\.
24
- .RS 2
25
- .nf
26
- # Install the cli globally
27
- npm install @swell/cli \-g
28
-
29
- # User\-based session authentication
30
- swell login
31
-
32
- # Push a content model
33
- swell model push \-\-content \-\-f models/page\.json
34
-
35
- # Pull storefront settings
36
- swell storefronts pull \-\-id P5OzfzLD \-f settings/store\.json
37
- .fi
38
- .RE
39
- .SH OPTIONS
40
- .P
41
- \fB\-\-version\fP, \fB\-V\fP
42
- .br
43
- Display the version of the Swell CLI\.
44
- .P
45
- \fB\-\-verbose\fP, \fB\-v\fP
46
- .br
47
- Enable verbose mode\.
48
- .P
49
- \fB\-\-quiet\fP, \fB\-q\fP
50
- .br
51
- Quiets the progress indicator and output of intermediary commands\.
52
- .P
53
- \fB\-\-yes\fP, \fB\-y\fP
54
- .br
55
- Answers all confirmation questions with \fByes\fR\|\.
56
- .P
57
- \fB\-\-dry\-run\fP
58
- .br
59
- Dry runs requests that delete data, but doesn't run them\.
60
- .SH COMMANDS
61
- .P
62
- \fBlogin\fP,
63
- .br
64
- Login as admin and store the session\.
65
- .P
66
- \fBmodel (push|pull)\fP
67
- .br
68
- Push or pull model definitions, including namespaced models (e\.g\. content models), abstract content models and content fields\.
69
- .P
70
- \fBstorefronts (push|pull)\fP
71
- .br
72
- Push or pull storefront configuration data\. Types allowed are "editor", "menus" and "settings"
73
- .SH CONFIGURATION
74
- .P
75
- Your local configs will be saved at \fB~/\.swell\fP
76
- .SH BUGS
77
- .P
78
- Please report any bugs or questions to our discussion board\. https://github.com/orgs/swellstores/discussions
79
- .SH LICENSE
80
- .P
81
- Copyright (c) 2022, Swell (GPL\-3\.0 License)\.
82
- .SH SEE ALSO
83
- .P
84
- node\.js(1)
85
-