argus-media-cli 0.1.1 → 0.1.2
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 -12
- package/dist/index.js +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ npx argus-media-cli upload photo.jpg
|
|
|
17
17
|
## Setup
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
argus login
|
|
20
|
+
argus-media-cli login
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Or set your API key as an environment variable:
|
|
@@ -31,37 +31,37 @@ export ARGUS_API_KEY=ak_your_key_here
|
|
|
31
31
|
### Upload
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
argus upload photo.jpg
|
|
35
|
-
argus upload hero.png --project campaign-q2 --tags hero,banner
|
|
34
|
+
argus-media-cli upload photo.jpg
|
|
35
|
+
argus-media-cli upload hero.png --project campaign-q2 --tags hero,banner
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Search
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
argus search "sunset landscape"
|
|
42
|
-
argus search --project website --status ready --json
|
|
41
|
+
argus-media-cli search "sunset landscape"
|
|
42
|
+
argus-media-cli search --project website --status ready --json
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### List
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
argus list
|
|
49
|
-
argus list --project website --limit 20
|
|
48
|
+
argus-media-cli list
|
|
49
|
+
argus-media-cli list --project website --limit 20
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
### Get
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
argus get <asset-id>
|
|
56
|
-
argus get abc12345 --json
|
|
55
|
+
argus-media-cli get <asset-id>
|
|
56
|
+
argus-media-cli get abc12345 --json
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Login
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
argus login # Interactive prompt
|
|
63
|
-
argus login --key ak_xxx # Non-interactive
|
|
64
|
-
argus login --url http://localhost:8787 # Custom API URL
|
|
62
|
+
argus-media-cli login # Interactive prompt
|
|
63
|
+
argus-media-cli login --key ak_xxx # Non-interactive
|
|
64
|
+
argus-media-cli login --url http://localhost:8787 # Custom API URL
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
## Options
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ function getApiKey(config) {
|
|
|
27
27
|
const key = process.env.ARGUS_API_KEY || config.apiKey;
|
|
28
28
|
if (!key) {
|
|
29
29
|
console.error("Error: No API key configured.");
|
|
30
|
-
console.error("Run `argus login` to authenticate, or set ARGUS_API_KEY.");
|
|
30
|
+
console.error("Run `argus-media-cli login` to authenticate, or set ARGUS_API_KEY.");
|
|
31
31
|
process.exit(1);
|
|
32
32
|
}
|
|
33
33
|
return key;
|
|
@@ -150,13 +150,13 @@ async function cmdLogin(args, flags) {
|
|
|
150
150
|
}
|
|
151
151
|
catch (e) {
|
|
152
152
|
console.error(`\nWarning: Could not verify key — ${e.message}`);
|
|
153
|
-
console.log("Key saved anyway. Check it with `argus list`.");
|
|
153
|
+
console.log("Key saved anyway. Check it with `argus-media-cli list`.");
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
async function cmdUpload(args, flags) {
|
|
157
157
|
const filePath = args[0];
|
|
158
158
|
if (!filePath) {
|
|
159
|
-
console.error("Usage: argus upload <file> [--project NAME] [--tags a,b,c]");
|
|
159
|
+
console.error("Usage: argus-media-cli upload <file> [--project NAME] [--tags a,b,c]");
|
|
160
160
|
process.exit(1);
|
|
161
161
|
}
|
|
162
162
|
const config = await loadConfig();
|
|
@@ -233,7 +233,7 @@ async function cmdList(_args, flags) {
|
|
|
233
233
|
async function cmdGet(args, flags) {
|
|
234
234
|
const id = args[0];
|
|
235
235
|
if (!id) {
|
|
236
|
-
console.error("Usage: argus get <asset-id>");
|
|
236
|
+
console.error("Usage: argus-media-cli get <asset-id>");
|
|
237
237
|
process.exit(1);
|
|
238
238
|
}
|
|
239
239
|
const config = await loadConfig();
|
|
@@ -288,10 +288,10 @@ function parseArgs(argv) {
|
|
|
288
288
|
return { command, args, flags };
|
|
289
289
|
}
|
|
290
290
|
function printHelp() {
|
|
291
|
-
console.log(`\x1b[1margus\x1b[0m — AI-native media asset management
|
|
291
|
+
console.log(`\x1b[1margus-media-cli\x1b[0m — AI-native media asset management
|
|
292
292
|
|
|
293
293
|
\x1b[1mUsage:\x1b[0m
|
|
294
|
-
argus <command> [options]
|
|
294
|
+
argus-media-cli <command> [options]
|
|
295
295
|
|
|
296
296
|
\x1b[1mCommands:\x1b[0m
|
|
297
297
|
login Authenticate with Argus
|
|
@@ -324,11 +324,11 @@ function printHelp() {
|
|
|
324
324
|
ARGUS_BASE_URL API base URL (default: https://argus.build)
|
|
325
325
|
|
|
326
326
|
\x1b[1mExamples:\x1b[0m
|
|
327
|
-
argus login
|
|
328
|
-
argus upload photo.jpg --project campaign-q2 --tags hero,banner
|
|
329
|
-
argus search "sunset landscape" --json
|
|
330
|
-
argus list --project website --limit 20
|
|
331
|
-
argus get abc12345-def6-7890-abcd-ef1234567890
|
|
327
|
+
argus-media-cli login
|
|
328
|
+
argus-media-cli upload photo.jpg --project campaign-q2 --tags hero,banner
|
|
329
|
+
argus-media-cli search "sunset landscape" --json
|
|
330
|
+
argus-media-cli list --project website --limit 20
|
|
331
|
+
argus-media-cli get abc12345-def6-7890-abcd-ef1234567890
|
|
332
332
|
`);
|
|
333
333
|
}
|
|
334
334
|
// ─── Main ──────────────────────────────────────────────────────────────────
|
|
@@ -347,13 +347,13 @@ async function main() {
|
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
349
|
if (command === "version" || command === "--version" || command === "-v") {
|
|
350
|
-
console.log("argus-media-cli 0.1.
|
|
350
|
+
console.log("argus-media-cli 0.1.2");
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
353
|
const handler = COMMANDS[command];
|
|
354
354
|
if (!handler) {
|
|
355
355
|
console.error(`Unknown command: ${command}`);
|
|
356
|
-
console.error('Run "argus help" for usage.');
|
|
356
|
+
console.error('Run "argus-media-cli help" for usage.');
|
|
357
357
|
process.exit(1);
|
|
358
358
|
}
|
|
359
359
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "argus-media-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI for Argus — AI-native media asset management. Upload, search, analyze, and manage media assets from the terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"argus",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"homepage": "https://argus.build",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"bin": {
|
|
24
|
-
"argus": "./dist/index.js"
|
|
24
|
+
"argus-media-cli": "./dist/index.js"
|
|
25
25
|
},
|
|
26
26
|
"main": "./dist/index.js",
|
|
27
27
|
"files": [
|