shopq 0.3.3 → 0.3.4

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 +17 -8
  2. package/package.json +2 -2
  3. package/dist/shopctl.js +0 -2264
package/README.md CHANGED
@@ -17,18 +17,23 @@ bun install -g shopq
17
17
 
18
18
  ## Prerequisites
19
19
 
20
- - [Bun](https://bun.sh) v1.3+ (also works with Node.js v18+)
21
- - A Shopify store with a [Dev Dashboard app](https://shopify.dev/docs/apps/build/authentication-authorization/client-credentials) configured for Client Credentials
20
+ - [Bun](https://bun.sh) v1.3+ (also works with Node.js v22+)
21
+ - A Shopify store with a Dev Dashboard app (see setup below)
22
22
 
23
23
  ## Setup
24
24
 
25
- Configure your store credentials:
25
+ ### 1. Create a Shopify app
26
26
 
27
- ```bash
28
- shopq config set --store your-store.myshopify.com --client-id your-client-id --client-secret your-client-secret
29
- ```
27
+ 1. Go to the [Shopify Dev Dashboard](https://dev.shopify.com/) and create a new app
28
+ 2. Configure the API scopes your app needs and release a version
29
+ 3. Click **Install app** (top right of the app overview page) to install it on your store
30
+ 4. Go to your app's **Settings** page and copy the **Client ID** and **Secret**
31
+
32
+ Your store URL is the `xxx.myshopify.com` domain shown in your Shopify admin sidebar.
30
33
 
31
- Or set environment variables:
34
+ ### 2. Configure credentials
35
+
36
+ Create a `.env` file in your project directory:
32
37
 
33
38
  ```
34
39
  SHOPIFY_STORE=your-store.myshopify.com
@@ -36,13 +41,17 @@ SHOPIFY_CLIENT_ID=your-client-id
36
41
  SHOPIFY_CLIENT_SECRET=your-client-secret
37
42
  ```
38
43
 
44
+ Bun loads `.env` automatically — no extra setup needed. shopq handles the OAuth token exchange behind the scenes.
45
+
39
46
  ### Development
40
47
 
41
48
  ```bash
42
49
  git clone https://github.com/c-99-e/shopq.git
43
50
  cd shopq
44
51
  bun install
45
- bun link
52
+
53
+ # Run locally without affecting a global shopq install
54
+ bun run bin/shopq.ts <command>
46
55
  ```
47
56
 
48
57
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopq",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "A zero-dependency Shopify Admin CLI built on Bun",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -47,6 +47,6 @@
47
47
  "@types/bun": "latest"
48
48
  },
49
49
  "peerDependencies": {
50
- "typescript": "^5"
50
+ "typescript": "^5.9.3"
51
51
  }
52
52
  }