@swell/cli 1.0.2 → 2.0.1-alpha.10
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/LICENSE.md +21 -0
- package/README.md +2 -140
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +7 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +7 -0
- package/dist/app-command.d.ts +22 -0
- package/dist/app-command.js +45 -0
- package/dist/commands/app/_pull.d.ts +8 -0
- package/dist/commands/app/_pull.js +45 -0
- package/dist/commands/app/_uninstall.d.ts +12 -0
- package/dist/commands/app/_uninstall.js +45 -0
- package/dist/commands/app/info.d.ts +15 -0
- package/dist/commands/app/info.js +92 -0
- package/dist/commands/app/install.d.ts +17 -0
- package/dist/commands/app/install.js +179 -0
- package/dist/commands/app/push.d.ts +20 -0
- package/dist/commands/app/push.js +170 -0
- package/dist/commands/app/version.d.ts +18 -0
- package/dist/commands/app/version.js +156 -0
- package/dist/commands/app/watch.d.ts +15 -0
- package/dist/commands/app/watch.js +110 -0
- package/dist/commands/create/app.d.ts +21 -0
- package/dist/commands/create/app.js +210 -0
- package/dist/commands/create/content.d.ts +19 -0
- package/dist/commands/create/content.js +87 -0
- package/dist/commands/create/function.d.ts +25 -0
- package/dist/commands/create/function.js +191 -0
- package/dist/commands/create/index.d.ts +6 -0
- package/dist/commands/create/index.js +34 -0
- package/dist/commands/create/model.d.ts +19 -0
- package/dist/commands/create/model.js +87 -0
- package/dist/commands/create/notification.d.ts +25 -0
- package/dist/commands/create/notification.js +170 -0
- package/dist/commands/login.d.ts +22 -0
- package/dist/commands/login.js +77 -0
- package/dist/commands/logout.d.ts +8 -0
- package/dist/commands/logout.js +45 -0
- package/dist/commands/logs.d.ts +24 -0
- package/dist/commands/logs.js +212 -0
- package/dist/commands/switch.d.ts +10 -0
- package/dist/commands/switch.js +41 -0
- package/dist/commands/whoami.d.ts +7 -0
- package/dist/commands/whoami.js +24 -0
- package/dist/create-collection-command.d.ts +26 -0
- package/dist/create-collection-command.js +97 -0
- package/dist/create-command.d.ts +16 -0
- package/dist/create-command.js +59 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/api.d.ts +13 -0
- package/dist/lib/api.js +126 -0
- package/dist/lib/app-config.d.ts +29 -0
- package/dist/lib/app-config.js +127 -0
- package/dist/lib/apps/app-config.d.ts +42 -0
- package/dist/lib/apps/app-config.js +170 -0
- package/dist/lib/apps/index.d.ts +67 -0
- package/dist/lib/apps/index.js +167 -0
- package/dist/lib/apps/paths.d.ts +18 -0
- package/dist/lib/apps/paths.js +54 -0
- package/dist/lib/bundle.d.ts +1 -0
- package/dist/lib/bundle.js +43 -0
- package/dist/lib/config.d.ts +37 -0
- package/dist/lib/config.js +131 -0
- package/dist/lib/constants.d.ts +5 -0
- package/dist/lib/constants.js +17 -0
- package/dist/lib/create/content.d.ts +23 -0
- package/dist/lib/create/content.js +40 -0
- package/dist/lib/create/function.d.ts +17 -0
- package/dist/lib/create/function.js +36 -0
- package/dist/lib/create/index.d.ts +13 -0
- package/dist/lib/create/index.js +22 -0
- package/dist/lib/create/model.d.ts +22 -0
- package/dist/lib/create/model.js +30 -0
- package/dist/lib/create/notification.d.ts +25 -0
- package/dist/lib/create/notification.js +1 -0
- package/dist/lib/info.d.ts +38 -0
- package/dist/lib/info.js +91 -0
- package/dist/lib/logs/index.d.ts +23 -0
- package/dist/lib/logs/index.js +88 -0
- package/dist/lib/logs/line-output.d.ts +5 -0
- package/dist/lib/logs/line-output.js +13 -0
- package/dist/lib/logs/output.d.ts +7 -0
- package/dist/lib/logs/output.js +8 -0
- package/dist/lib/logs/table-output.d.ts +11 -0
- package/dist/lib/logs/table-output.js +128 -0
- package/dist/lib/sessions.d.ts +9 -0
- package/dist/lib/sessions.js +110 -0
- package/dist/lib/stores.d.ts +63 -0
- package/dist/lib/stores.js +173 -0
- package/dist/lib/style.d.ts +24 -0
- package/dist/lib/style.js +29 -0
- package/dist/lib/swell-function-wrapper.d.ts +88 -0
- package/dist/lib/swell-function-wrapper.js +302 -0
- package/dist/remote-app-command.d.ts +36 -0
- package/dist/remote-app-command.js +388 -0
- package/dist/swell-command.d.ts +21 -0
- package/dist/swell-command.js +43 -0
- package/oclif.manifest.json +1090 -0
- package/package.json +81 -43
- package/LICENSE +0 -674
- package/dist/bin/multipart-parser-85ef9626.js +0 -456
- package/dist/bin/swell-0f71f07d.js +0 -30670
- package/dist/bin/swell.js +0 -24
- 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
|
-
|