@allowance/cli 0.1.0 → 0.1.1

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
@@ -35,6 +35,18 @@ uv sync --dev
35
35
  uv run allowance --help
36
36
  ```
37
37
 
38
+ ## CLI Help UX
39
+
40
+ The CLI now supports all of these help forms:
41
+
42
+ ```bash
43
+ allowance --help
44
+ allowance -h
45
+ allowance -help
46
+ allowance --version
47
+ allowance quickstart
48
+ ```
49
+
38
50
  ## Publish to npm
39
51
 
40
52
  This repo supports npm publishing through GitHub Actions.
@@ -147,6 +159,7 @@ All commands output JSON by default. Use `--pretty` for formatted JSON.
147
159
 
148
160
  | Command | What It Does | Use When |
149
161
  |---|---|---|
162
+ | `allowance quickstart` | Prints copy-paste end-to-end purchase flow | You want the fastest correct flow immediately |
150
163
  | `allowance auth login --email <email>` | Signs in via OTP bootstrap and stores token in keychain | Starting a session |
151
164
  | `allowance auth status` | Shows whether CLI is logged in and which account/token prefix | Preflight checks |
152
165
  | `allowance auth logout` | Revokes token and clears local credentials | End of session/security cleanup |
package/lib/runtime.js CHANGED
@@ -145,7 +145,10 @@ function installPinnedPackage(targetSpec) {
145
145
  }
146
146
 
147
147
  function ensureRuntime(options) {
148
- const targetSpec = `${options.pypiPackage}==${options.version}`;
148
+ const envTargetSpec = process.env.ALLOWANCE_PYPI_TARGET;
149
+ const targetSpec = envTargetSpec && envTargetSpec.trim()
150
+ ? envTargetSpec.trim()
151
+ : `${options.pypiPackage}==${options.version}`;
149
152
  const currentState = readState();
150
153
 
151
154
  if (fs.existsSync(allowanceExecutablePath()) && currentState && currentState.targetSpec === targetSpec) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allowance/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Allowance CLI wrapper package for npm global installs",
5
5
  "license": "MIT",
6
6
  "repository": {