@userland.fun/cli 0.3.1 → 0.3.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.
- package/README.md +2 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ npm install -g @userland.fun/cli
|
|
|
17
17
|
Then run:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
+
userland --version
|
|
20
21
|
userland login
|
|
21
22
|
userland login --no-browser
|
|
22
23
|
userland signup
|
|
@@ -48,6 +49,7 @@ userland apps domains verify <app-id> <hostname>
|
|
|
48
49
|
From this repo, the same commands can be run from source:
|
|
49
50
|
|
|
50
51
|
```sh
|
|
52
|
+
npm run userland -- --version
|
|
51
53
|
npm run userland -- login
|
|
52
54
|
npm run userland -- login --no-browser
|
|
53
55
|
npm run userland -- signup
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ async function main() {
|
|
|
19
19
|
if (isHelpCommand(command)) {
|
|
20
20
|
usage(0);
|
|
21
21
|
}
|
|
22
|
+
if (isVersionCommand(command)) {
|
|
23
|
+
console.log(CLI_VERSION);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
22
26
|
if (command === "apps") {
|
|
23
27
|
await appsCommand(args);
|
|
24
28
|
return;
|
|
@@ -1287,9 +1291,13 @@ function docsUrlForError(message) {
|
|
|
1287
1291
|
function isHelpCommand(command) {
|
|
1288
1292
|
return command === "--help" || command === "-h" || command === "help";
|
|
1289
1293
|
}
|
|
1294
|
+
function isVersionCommand(command) {
|
|
1295
|
+
return command === "--version" || command === "version";
|
|
1296
|
+
}
|
|
1290
1297
|
function usage(exitCode) {
|
|
1291
1298
|
const message = `Usage:
|
|
1292
1299
|
userland [--help]
|
|
1300
|
+
userland --version
|
|
1293
1301
|
userland signup [--no-browser] [--email <email>] [--api-base-url <url>] [--console-url <url>] [--no-save]
|
|
1294
1302
|
userland login [--no-browser] [--email <email>] [--api-base-url <url>] [--console-url <url>] [--no-save]
|
|
1295
1303
|
userland auth status
|