@shuffl/cli 0.6.5 → 0.7.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/README.md CHANGED
@@ -33,7 +33,7 @@ shuffl programs update --input-file update-program.json --json
33
33
  shuffl logout
34
34
  ```
35
35
 
36
- Alternatively set `SHUFFL_TOKEN` and `SHUFFL_BASE_URL` through your environment. Tokens are never accepted as command-line arguments or printed after login. Saved credentials are stored with mode `0600` under `$XDG_CONFIG_HOME/shuffl/config.json` (default `~/.config/shuffl/config.json`). `SHUFFL_CONFIG_DIR` overrides the Shuffl directory. Logout removes the local copy; revoke the token in Settings to disable other copies.
36
+ Alternatively set `SHUFFL_API_KEY` and `SHUFFL_BASE_URL` through your environment. Tokens are never accepted as command-line arguments or printed after login. Saved credentials are stored with mode `0600` under `$XDG_CONFIG_HOME/shuffl/config.json` (default `~/.config/shuffl/config.json`). `SHUFFL_CONFIG_DIR` overrides the Shuffl directory. Logout removes the local copy; revoke the token in Settings to disable other copies.
37
37
 
38
38
  The saved token cannot be used with a different `--base-url`; log into that server or supply an explicit environment token. Login verifies the token before saving it.
39
39
 
package/dist/index.js CHANGED
@@ -203,7 +203,7 @@ export async function runCli(args, io = {
203
203
  const company = command.credential === 'company';
204
204
  const environmentToken = company
205
205
  ? io.env.SHUFFL_COMPANY_KEY
206
- : io.env.SHUFFL_TOKEN;
206
+ : io.env.SHUFFL_API_KEY;
207
207
  const saved = await load(company ? companyFile : configFile);
208
208
  const token = environmentToken ?? saved?.token;
209
209
  const baseUrl = typeof flags['base-url'] === 'string'
@@ -212,7 +212,7 @@ export async function runCli(args, io = {
212
212
  if (!token || !baseUrl)
213
213
  throw new Error(company
214
214
  ? 'Run shuffl login --company, or set SHUFFL_COMPANY_KEY and SHUFFL_BASE_URL.'
215
- : 'Run shuffl login, or set SHUFFL_TOKEN and SHUFFL_BASE_URL.');
215
+ : 'Run shuffl login, or set SHUFFL_API_KEY and SHUFFL_BASE_URL.');
216
216
  if (!environmentToken &&
217
217
  saved &&
218
218
  new URL(baseUrl).origin !== new URL(saved.baseUrl).origin)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@orpc/client": "1.15.3",
4
- "@shuffl/api-contracts": "0.6.5",
5
- "@shuffl/sdk": "0.6.5"
4
+ "@shuffl/api-contracts": "0.7.0",
5
+ "@shuffl/sdk": "0.7.0"
6
6
  },
7
7
  "description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
8
8
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
35
  "types": "./dist/index.d.ts",
36
- "version": "0.6.5",
36
+ "version": "0.7.0",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }