@artifactshare/cli 0.1.4 → 0.1.6
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 +27 -17
- package/dist/index.js +1006 -51
- package/package.json +2 -2
- package/skills/artifactshare/SKILL.md +31 -7
- package/skills/artifactshare/artifactshare.mdc +11 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Artifact Share CLI
|
|
2
2
|
|
|
3
|
-
The official CLI to upload and share files, folders, and static sites on [Artifact Share](https://artifactshare.com) from terminals, AI agents, and automation. Publish HTML, Markdown, and exported sites to stable share URLs, update existing
|
|
3
|
+
The official CLI to upload and share files, folders, and static sites on [Artifact Share](https://artifactshare.com) from terminals, AI agents, and automation. Publish HTML, Markdown, and exported sites to stable share URLs, update existing files, and emit `--json` for scripts and agents.
|
|
4
4
|
|
|
5
5
|
Artifact Share hosts AI-built reports, documents, and static sites so you can share them with teammates and clients. This CLI publishes a single file or a whole folder (HTML, Markdown, exported SPAs, images included), updates versions, reads content and comments back, and works the same for humans, terminal agents (Claude Code, Codex, Cursor Agent), and automation.
|
|
6
6
|
|
|
@@ -18,7 +18,12 @@ On the first run in an interactive terminal, the CLI prints a sign-in link — o
|
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
npx --yes @artifactshare/cli publish ./dist --project "Weekly Reports"
|
|
21
|
+
npx --yes @artifactshare/cli projects create "Client reports" --json
|
|
22
|
+
npx --yes @artifactshare/cli projects edit <id> --add-email viewer@example.com --json
|
|
23
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --project-id <id> --json
|
|
24
|
+
npx --yes @artifactshare/cli edit <artifact-id-or-url> --visibility private --grant-email viewer@example.com --json
|
|
21
25
|
npx --yes @artifactshare/cli update <artifact-id-or-url> ./dist
|
|
26
|
+
npx --yes @artifactshare/cli delete <artifact-id-or-url> --json
|
|
22
27
|
```
|
|
23
28
|
|
|
24
29
|
## Authentication
|
|
@@ -29,21 +34,24 @@ npx --yes @artifactshare/cli update <artifact-id-or-url> ./dist
|
|
|
29
34
|
|
|
30
35
|
## Commands
|
|
31
36
|
|
|
32
|
-
| Command
|
|
33
|
-
|
|
|
34
|
-
| `publish <path>`
|
|
35
|
-
| `update <target> <path>`
|
|
36
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
39
|
-
| `
|
|
40
|
-
| `
|
|
41
|
-
| `
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
37
|
+
| Command | What it does |
|
|
38
|
+
| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
|
|
39
|
+
| `publish <path>` | Publish a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`) |
|
|
40
|
+
| `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
|
|
41
|
+
| `edit <target>` | Change title, sharing, explicit viewers, or project placement |
|
|
42
|
+
| `delete <target>` | Permanently delete a file you published |
|
|
43
|
+
| `resolve <value>` | Find files by URL, ID, title, or project name |
|
|
44
|
+
| `artifacts get <target>` | Read a file's content and metadata back |
|
|
45
|
+
| `download <target>` | Save a file or a whole static site locally |
|
|
46
|
+
| `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
|
|
47
|
+
| `projects list / create / edit` | List, create, and edit project destinations and audience |
|
|
48
|
+
| `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
|
|
49
|
+
| `request-access` | Join the waitlist when publishing is not enabled yet |
|
|
50
|
+
| `login` / `whoami` | Sign in and check who you are |
|
|
51
|
+
| `doctor` | Diagnose auth, destination, network, and upload readiness — tells you the next command to run |
|
|
52
|
+
| `profiles list / use / import-token` | Switch between local account profiles and import an issued token from stdin |
|
|
53
|
+
| `init` | Save a default project for the current directory |
|
|
54
|
+
| `skills install / list / update / remove` | Install the bundled usage guide into your AI agent's skills |
|
|
47
55
|
|
|
48
56
|
## For AI agents
|
|
49
57
|
|
|
@@ -53,7 +61,9 @@ Teach your agent how to use Artifact Share once:
|
|
|
53
61
|
npx --yes @artifactshare/cli skills install
|
|
54
62
|
```
|
|
55
63
|
|
|
56
|
-
This installs a skill (for Claude Code, Codex, and Cursor) that covers publishing, updating, and
|
|
64
|
+
This installs a skill (for Claude Code, Codex, and Cursor) that covers publishing, updating, and working with comments.
|
|
65
|
+
|
|
66
|
+
Comment deletion is permanent. Use `comments delete <target> --thread-id <id> --message-id <id> --json` for one message, or omit `--message-id` only when deleting the whole thread.
|
|
57
67
|
|
|
58
68
|
All commands emit stable JSON when run non-interactively, piped, or with `--json`: success on stdout as `{ "schema_version": 1, "ok": true, "command": ..., "data": ... }`, failures on stderr as `{ "schema_version": 1, "ok": false, "command": ..., "error": ... }` with exit code 1. The `error` object carries a machine-readable `code`, a `hint`, and a structured `recovery` field (for example `{ "kind": "run_command", ... }`), so agents and scripts can branch and recover without parsing prose.
|
|
59
69
|
|