@imagerry/cli 0.1.5-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 +12 -7
- package/bin/imagerry.js +6 -16
- package/package.json +18 -9
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
|
|
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
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
57
|
+
#### Environment variable
|
|
54
58
|
|
|
55
|
-
For automation and CI/CD environments
|
|
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
|
-
>
|
|
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,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imagerry/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7-beta",
|
|
4
4
|
"description": "Command-line interface for the Imagerry engine",
|
|
5
|
-
"homepage": "https://
|
|
5
|
+
"homepage": "https://cli.imagerry.com",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/imagerry-app/cli.git",
|
|
9
|
+
"directory": "cli"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/imagerry-app/cli/issues"
|
|
13
|
+
},
|
|
6
14
|
"engines": {
|
|
7
15
|
"node": ">=18.0.0"
|
|
8
16
|
},
|
|
@@ -15,12 +23,13 @@
|
|
|
15
23
|
"imagerry": "bin/imagerry.js"
|
|
16
24
|
},
|
|
17
25
|
"optionalDependencies": {
|
|
18
|
-
"@imagerry/cli-darwin-arm64": "0.1.
|
|
19
|
-
"@imagerry/cli-darwin-x64": "0.1.
|
|
20
|
-
"@imagerry/cli-linux-arm64": "0.1.
|
|
21
|
-
"@imagerry/cli-linux-x64": "0.1.
|
|
22
|
-
"@imagerry/cli-win32-arm64": "0.1.
|
|
23
|
-
"@imagerry/cli-win32-x64": "0.1.
|
|
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"
|
|
24
33
|
},
|
|
25
34
|
"keywords": [
|
|
26
35
|
"image",
|
|
@@ -36,6 +45,6 @@
|
|
|
36
45
|
"author": "Imagerry <support@imagerry.com>",
|
|
37
46
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
47
|
"imagerry": {
|
|
39
|
-
"minimumVersion": "0.1.
|
|
48
|
+
"minimumVersion": "0.1.7-beta"
|
|
40
49
|
}
|
|
41
50
|
}
|