apiblaze 0.1.22 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +33 -13
  2. package/dist/index.js +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -11,7 +11,7 @@ npm install -g apiblaze
11
11
  Or run without installing:
12
12
 
13
13
  ```bash
14
- npx apiblaze dev
14
+ npx apiblaze --help
15
15
  ```
16
16
 
17
17
  ## Requirements
@@ -21,14 +21,29 @@ npx apiblaze dev
21
21
  ## Quick start
22
22
 
23
23
  ```bash
24
- # 1. Log in to your APIblaze account
25
- apiblaze login
24
+ # Create a proxy (no account needed)
25
+ npx apiblaze create --target https://api.example.com
26
+
27
+ # Optional: sign in if you want it under your team
28
+ npx apiblaze login
29
+
30
+ # Create a proxy under your team
31
+ npx apiblaze create --name myapi --target https://api.example.com --auth api_key
32
+
33
+ # Start a dev tunnel (defaults to port 3000)
34
+ npx apiblaze dev
26
35
 
27
- # 2. Start tunneling (default port 3000)
28
- apiblaze dev
36
+ # Or specify a port
37
+ npx apiblaze dev 3000
29
38
 
30
- # Or specify a different port
31
- apiblaze dev --port 8080
39
+ ```
40
+
41
+ ## Help
42
+
43
+ ```bash
44
+ apiblaze --help
45
+ apiblaze help create
46
+ apiblaze help dev
32
47
  ```
33
48
 
34
49
  ## Commands
@@ -36,20 +51,25 @@ apiblaze dev --port 8080
36
51
  | Command | Description |
37
52
  |---|---|
38
53
  | `apiblaze login` | Authenticate with your APIblaze account |
39
- | `apiblaze dev [--port <n>]` | Tunnel localhost projects through Cloudflare |
54
+ | `apiblaze create [options]` | Create a new API proxy (anonymous if not logged in) |
55
+ | `apiblaze claim [code]` | Claim an anonymously-created proxy into your team |
56
+ | `apiblaze projects` | List your team projects |
57
+ | `apiblaze dev [port]` | Start a dev tunnel for your localhost projects |
58
+ | `apiblaze team [team]` | Switch the active team |
59
+ | `apiblaze whoami` | Show the signed-in identity and active team |
60
+ | `apiblaze logout` | Sign out and remove stored credentials |
40
61
 
41
62
  ## How it works
42
63
 
43
64
  `apiblaze dev` automatically:
44
65
 
45
- 1. Finds all your APIblaze projects that target `localhost`
46
- 2. Downloads and starts a [Cloudflare Quick Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/) (no account required)
47
- 3. Registers the tunnel URL with APIblaze so incoming API requests are forwarded to your machine
48
- 4. Streams live traffic logs to your terminal in real-time
66
+ 1. Fetches your APIblaze projects that target `localhost` (or other internal targets)
67
+ 2. Registers a temporary dev tunnel with APIblaze
68
+ 3. Opens a secure connection and forwards incoming requests to your local server
69
+ 4. Streams live traffic logs to your terminal in real time
49
70
 
50
71
  On Ctrl+C the tunnel is cleanly deregistered.
51
72
 
52
73
  ## License
53
74
 
54
75
  MIT
55
- # npm-apiblaze
package/dist/index.js CHANGED
@@ -206,7 +206,7 @@ var import_commander = require("commander");
206
206
  var import_chalk10 = __toESM(require("chalk"));
207
207
 
208
208
  // package.json
209
- var version = "0.1.22";
209
+ var version = "0.2.0";
210
210
 
211
211
  // src/index.ts
212
212
  init_types();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apiblaze",
3
- "version": "0.1.22",
3
+ "version": "0.2.0",
4
4
  "description": "Dev tunnel CLI for APIblaze — route localhost projects through your APIblaze endpoints",
5
5
  "keywords": [
6
6
  "apiblaze",
@@ -27,7 +27,7 @@
27
27
  "build:watch": "tsup --watch",
28
28
  "typecheck": "tsc --noEmit",
29
29
  "prepublishOnly": "npm run build && npm run typecheck",
30
- "release": "bash scripts/release.sh"
30
+ "release": "bash release.sh"
31
31
  },
32
32
  "dependencies": {
33
33
  "chalk": "^4.1.2",