@imagerry/cli 0.1.6-beta → 0.1.7-beta

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
@@ -38,28 +38,32 @@ Verify the installation:
38
38
  imagerry -h
39
39
  ```
40
40
 
41
- ## Licensing
41
+ ## Free Tier & Licensing
42
42
 
43
- Imagerry CLI requires an **Imagerry Pro** license.
43
+ Imagerry CLI includes a **Free Tier** that allows you to process up to **15 free images per day** without requiring a license key.
44
44
 
45
- You can provide your license key in either of the following ways.
45
+ For unlimited daily processing, automated loops/batch scripts, or hosting the self-hosted `serve` API and `mcp` server, an **[Imagerry Pro](https://imagerry.com/pro)** license is required.
46
46
 
47
- ### Command-line option
47
+ ### Using Pro License
48
+
49
+ You can provide your license key in either of the following ways:
50
+
51
+ #### Command-line option
48
52
 
49
53
  ```bash
50
54
  imagerry --input=input.png --output=output.png --license-key=YOUR_KEY
51
55
  ```
52
56
 
53
- ### Environment variable
57
+ #### Environment variable
54
58
 
55
- For automation and CI/CD environments, using an environment variable is recommended:
59
+ For automation, Docker, and CI/CD environments:
56
60
 
57
61
  ```bash
58
62
  export IMAGERRY_LICENSE_KEY="YOUR_KEY"
59
63
  ```
60
64
 
61
65
  > [!TIP]
62
- > The CLI verifies your license with the payment server, but CLI usage does **not count against your device limit**. This makes it suitable for automated environments such as GitHub Actions, Docker, and CI/CD pipelines.
66
+ > CLI usage does **not count against your device limit**. You can use your Pro license freely across your local terminal, Docker containers, and CI/CD pipelines.
63
67
 
64
68
  ## Usage
65
69
 
@@ -209,4 +213,5 @@ The CLI only communicates with the licensing service when verifying your Imagerr
209
213
  ## Links
210
214
 
211
215
  * [Imagerry](https://imagerry.com)
216
+ * [Imagerry Pro](https://imagerry.com/pro)
212
217
  * [Legal & Terms](https://imagerry.com/legal)
package/bin/imagerry.js CHANGED
@@ -12,28 +12,14 @@ const packageName = `@imagerry/cli-${platform}-${arch}`;
12
12
 
13
13
  try {
14
14
  const require = createRequire(import.meta.url);
15
-
15
+
16
16
  // Resolve the platform-specific package
17
17
  const pkgPath = require.resolve(`${packageName}/package.json`);
18
18
  const pkgDir = path.dirname(pkgPath);
19
-
20
- // if (platform === 'android') {
21
- // const entryPath = path.join(pkgDir, 'index.cjs');
22
- // if (!fs.existsSync(entryPath)) {
23
- // throw new Error(`Android JS entry not found at ${entryPath}`);
24
- // }
25
- // const { status, signal, error } = spawnSync('node', [entryPath, ...process.argv.slice(2)], {
26
- // stdio: 'inherit',
27
- // });
28
- //
29
- // if (error) throw error;
30
- // if (signal) process.exit(1);
31
- // process.exit(status ?? 0);
32
- // }
33
19
 
34
20
  const binName = platform === 'win32' ? 'imagerry.exe' : 'imagerry';
35
21
  const binPath = path.join(pkgDir, binName);
36
-
22
+
37
23
  if (!fs.existsSync(binPath)) {
38
24
  throw new Error(`Native binary not found at ${binPath}`);
39
25
  }
@@ -42,6 +28,10 @@ try {
42
28
  const { status, signal, error } = spawnSync(binPath, process.argv.slice(2), {
43
29
  stdio: 'inherit',
44
30
  windowsHide: true,
31
+ env: {
32
+ ...process.env,
33
+ IMAGERRY_INSTALLED_BY: 'npm',
34
+ },
45
35
  });
46
36
 
47
37
  if (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imagerry/cli",
3
- "version": "0.1.6-beta",
3
+ "version": "0.1.7-beta",
4
4
  "description": "Command-line interface for the Imagerry engine",
5
5
  "homepage": "https://cli.imagerry.com",
6
6
  "repository": {
@@ -23,12 +23,13 @@
23
23
  "imagerry": "bin/imagerry.js"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@imagerry/cli-darwin-arm64": "0.1.6-beta",
27
- "@imagerry/cli-darwin-x64": "0.1.6-beta",
28
- "@imagerry/cli-linux-arm64": "0.1.6-beta",
29
- "@imagerry/cli-linux-x64": "0.1.6-beta",
30
- "@imagerry/cli-win32-arm64": "0.1.6-beta",
31
- "@imagerry/cli-win32-x64": "0.1.6-beta"
26
+ "@imagerry/cli-darwin-arm64": "0.1.7-beta",
27
+ "@imagerry/cli-darwin-x64": "0.1.7-beta",
28
+ "@imagerry/cli-linux-arm64": "0.1.7-beta",
29
+ "@imagerry/cli-linux-x64": "0.1.7-beta",
30
+ "@imagerry/cli-win32-arm64": "0.1.7-beta",
31
+ "@imagerry/cli-win32-x64": "0.1.7-beta",
32
+ "@imagerry/cli-android-arm64": "0.1.7-beta"
32
33
  },
33
34
  "keywords": [
34
35
  "image",
@@ -44,6 +45,6 @@
44
45
  "author": "Imagerry <support@imagerry.com>",
45
46
  "license": "SEE LICENSE IN LICENSE.md",
46
47
  "imagerry": {
47
- "minimumVersion": "0.1.0-beta"
48
+ "minimumVersion": "0.1.7-beta"
48
49
  }
49
50
  }