@swell/cli 0.1.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/LICENSE +674 -0
- package/README.md +160 -0
- package/dist/bin/multipart-parser-2c48c5f2.js +458 -0
- package/dist/bin/swell-b7920988.js +29634 -0
- package/dist/bin/swell.js +26 -0
- package/dist/man/swell.1 +97 -0
- package/package.json +63 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
export { c as commands, b as commandsArgs, s as default } from './swell-b7920988.js';
|
|
4
|
+
import 'assert';
|
|
5
|
+
import 'child_process';
|
|
6
|
+
import 'async_hooks';
|
|
7
|
+
import 'util';
|
|
8
|
+
import 'process';
|
|
9
|
+
import 'os';
|
|
10
|
+
import 'tty';
|
|
11
|
+
import 'path';
|
|
12
|
+
import 'fs';
|
|
13
|
+
import 'stream';
|
|
14
|
+
import 'string_decoder';
|
|
15
|
+
import 'buffer';
|
|
16
|
+
import 'events';
|
|
17
|
+
import 'url';
|
|
18
|
+
import 'http';
|
|
19
|
+
import 'https';
|
|
20
|
+
import 'zlib';
|
|
21
|
+
import 'stream/web';
|
|
22
|
+
import 'net';
|
|
23
|
+
import 'worker_threads';
|
|
24
|
+
import 'readline';
|
|
25
|
+
import 'constants';
|
|
26
|
+
import 'crypto';
|
package/dist/man/swell.1
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.TH "SWELL" "1" "December 2022" "0.1.0"
|
|
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 [namespace] [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, keeps our version of the file in case of conflicts (needs git)
|
|
36
|
+
swell storefront settings pull settings \-f settings/store\.json \-\-strategy ours
|
|
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
|
+
.P
|
|
61
|
+
\fB\-\-secret\-key\fP
|
|
62
|
+
.br
|
|
63
|
+
Enables ephemeral secret\-key based authentication for commands
|
|
64
|
+
.SH COMMANDS
|
|
65
|
+
.P
|
|
66
|
+
\fBlogin\fP,
|
|
67
|
+
.br
|
|
68
|
+
Login to a store and stores the user session
|
|
69
|
+
.P
|
|
70
|
+
\fBmodel (push|pull)\fP
|
|
71
|
+
.br
|
|
72
|
+
Push or pull model definitions, including namespaced models (e\.g\. content models), abstract content models and content fields\.
|
|
73
|
+
.P
|
|
74
|
+
\fBsettings (push|pull)\fP
|
|
75
|
+
.br
|
|
76
|
+
Push or pull store settings (e\.g\. payments, shipping, etc\.\.\.)
|
|
77
|
+
.P
|
|
78
|
+
\fBstorefront settings (push|pull)\fP
|
|
79
|
+
.br
|
|
80
|
+
Push or pull storefront settings\. Scopes include \fBsettings\fP, \fBeditor\fP and \fBmenus\fP\|\.
|
|
81
|
+
.P
|
|
82
|
+
\fBstorefront ssh\-keys (list|add|delete)\fP
|
|
83
|
+
.br
|
|
84
|
+
Manage a user's SSH keys to a storefront\. Needs session authentication (\fBswell login\fP)\.
|
|
85
|
+
.SH CONFIGURATION
|
|
86
|
+
.P
|
|
87
|
+
Your local configs will be saved at \fB~/\.swell\fP
|
|
88
|
+
.SH BUGS
|
|
89
|
+
.P
|
|
90
|
+
Please report any bugs or questions to our discussion board\. https://github.com/orgs/swellstores/discussions
|
|
91
|
+
.SH LICENSE
|
|
92
|
+
.P
|
|
93
|
+
Copyright (c) 2022, Swell (GPL\-3\.0 License)\.
|
|
94
|
+
.SH SEE ALSO
|
|
95
|
+
.P
|
|
96
|
+
node\.js(1)
|
|
97
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swell/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Swell's command line interface/utility",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"swell",
|
|
7
|
+
"commerce",
|
|
8
|
+
"cli"
|
|
9
|
+
],
|
|
10
|
+
"author": "Swell",
|
|
11
|
+
"license": "GPLv3",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/orgs/swellstores/discussions"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://www.swell.is",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"bin": {
|
|
18
|
+
"swell": "dist/bin/swell.js"
|
|
19
|
+
},
|
|
20
|
+
"man": [
|
|
21
|
+
"dist/man/swell.1"
|
|
22
|
+
],
|
|
23
|
+
"watch": {
|
|
24
|
+
"prepack": "{src,tests}/**/*.js"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"watch": "npm-watch",
|
|
28
|
+
"prepack": "rimraf \"./dist/bin/!(swell).js\" && rollup -c && npm run man",
|
|
29
|
+
"man": "mkdir -p dist/man && marked-man MAN_PAGE.md > dist/man/swell.1",
|
|
30
|
+
"test": "cross-env NODE_ENV=test uvu tests"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@rollup/plugin-commonjs": "19.0.0",
|
|
37
|
+
"@rollup/plugin-inject": "4.0.2",
|
|
38
|
+
"@rollup/plugin-json": "4.1.0",
|
|
39
|
+
"@rollup/plugin-node-resolve": "13.0.0",
|
|
40
|
+
"@rollup/plugin-replace": "2.4.2",
|
|
41
|
+
"arg": "5.0.2",
|
|
42
|
+
"case-anything": "2.1.10",
|
|
43
|
+
"chalk": "5.1.2",
|
|
44
|
+
"configstore": "6.0.0",
|
|
45
|
+
"cross-env": "7.0.3",
|
|
46
|
+
"deepmerge": "4.2.2",
|
|
47
|
+
"list-it": "1.3.10",
|
|
48
|
+
"marked": "4.2.3",
|
|
49
|
+
"marked-man": "1.3.0",
|
|
50
|
+
"nock": "13.2.9",
|
|
51
|
+
"npm-watch": "0.11.0",
|
|
52
|
+
"ora": "6.1.2",
|
|
53
|
+
"rimraf": "3.0.2",
|
|
54
|
+
"rollup": "2.79.1",
|
|
55
|
+
"rollup-plugin-node-externals": "4.1.1",
|
|
56
|
+
"strip-ansi": "7.0.1",
|
|
57
|
+
"uvu": "0.5.6",
|
|
58
|
+
"zx": "7.1.1"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">= 16.18.1"
|
|
62
|
+
}
|
|
63
|
+
}
|