openmates 0.18.0-alpha.21 → 0.18.0-alpha.22
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 +15 -0
- package/dist/{chunk-5KADUAVD.js → chunk-YRJHL6CY.js} +8 -3
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,21 @@ openmates whoami --json
|
|
|
54
54
|
The CLI displays a QR code or pair PIN. Approve it in the OpenMates web app.
|
|
55
55
|
During login, the CLI never asks for your account password.
|
|
56
56
|
|
|
57
|
+
Switch to a dev account using an isolated profile; upgrading to an alpha release
|
|
58
|
+
preserves your existing login and does not change the API server:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
openmates --profile dev --api-url https://api.dev.openmates.org login
|
|
62
|
+
export OPENMATES_PROFILE=dev
|
|
63
|
+
openmates whoami
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Approve pairing in the dev web app with your dev account. The profile saves the
|
|
67
|
+
API URL. Run `unset OPENMATES_PROFILE` to return to the default profile, keeping
|
|
68
|
+
its existing production login. Without an environment selection, pass
|
|
69
|
+
`--profile dev` on each dev command. Release/update channels and login profiles
|
|
70
|
+
are independent.
|
|
71
|
+
|
|
57
72
|
Create a new account from the terminal:
|
|
58
73
|
|
|
59
74
|
```bash
|
|
@@ -84196,7 +84196,7 @@ function parseArgs(argv) {
|
|
|
84196
84196
|
const positionals = [];
|
|
84197
84197
|
const flags = {};
|
|
84198
84198
|
for (let i = 0; i < argv.length; i += 1) {
|
|
84199
|
-
const arg = argv[i];
|
|
84199
|
+
const arg = ["-v", "-version"].includes(argv[i]) ? "--version" : argv[i];
|
|
84200
84200
|
if (!arg.startsWith("--")) {
|
|
84201
84201
|
positionals.push(arg);
|
|
84202
84202
|
continue;
|
|
@@ -86249,7 +86249,10 @@ Use @mentions in chat messages:
|
|
|
86249
86249
|
openmates chats new "@Code-Projects review my architecture"`);
|
|
86250
86250
|
}
|
|
86251
86251
|
function printHelp() {
|
|
86252
|
-
|
|
86252
|
+
const version = getCliPackageVersion();
|
|
86253
|
+
const releaseBranch = version === "unknown" ? "unknown" : version.includes("-") ? "dev" : "main";
|
|
86254
|
+
console.log(`OpenMates CLI ${version}
|
|
86255
|
+
Release branch: ${releaseBranch}
|
|
86253
86256
|
|
|
86254
86257
|
Commands:
|
|
86255
86258
|
openmates login Pair-auth login
|
|
@@ -86293,13 +86296,15 @@ Flags:
|
|
|
86293
86296
|
--profile <name> Use an isolated login profile (also OPENMATES_PROFILE)
|
|
86294
86297
|
--api-url <url> Override API base URL (default: installed self-host server, then https://api.openmates.org)
|
|
86295
86298
|
--api-key <key> Optional API key override (or set OPENMATES_API_KEY)
|
|
86296
|
-
--version
|
|
86299
|
+
--version, -v, -version Show CLI version and update availability
|
|
86297
86300
|
--help Show contextual help for any command`);
|
|
86298
86301
|
}
|
|
86299
86302
|
function printVersionHelp() {
|
|
86300
86303
|
console.log(`OpenMates CLI version command:
|
|
86301
86304
|
openmates version [--json]
|
|
86302
86305
|
openmates --version [--json]
|
|
86306
|
+
openmates -v [--json]
|
|
86307
|
+
openmates -version [--json]
|
|
86303
86308
|
|
|
86304
86309
|
Prints the installed CLI version, checks the latest npm version, and shows the
|
|
86305
86310
|
upgrade command when an update is available.
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED