@displaydev/cli 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +60 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @displaydev/cli
2
+
3
+ CLI for [display.dev](https://display.dev) — publish HTML and Markdown behind company auth.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @displaydev/cli
9
+ ```
10
+
11
+ ## Authenticate
12
+
13
+ ```bash
14
+ # Interactive login via email OTP
15
+ dsp login
16
+
17
+ # Or set an API key (from the dashboard)
18
+ export DISPLAY_API_KEY=sk_live_...
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```bash
24
+ # Publish a file
25
+ dsp publish ./report.html --name "Q1 Report"
26
+
27
+ # Update an existing artifact
28
+ dsp publish ./report.html --id abc123
29
+
30
+ # Search artifacts
31
+ dsp find
32
+ dsp find "quarterly" --by alice@acme.com
33
+
34
+ # Get artifact details
35
+ dsp get abc123
36
+
37
+ # Delete an artifact
38
+ dsp delete abc123 --confirm
39
+
40
+ # Start MCP server (for Claude Desktop / Claude Code)
41
+ dsp mcp
42
+ ```
43
+
44
+ ## MCP
45
+
46
+ The CLI doubles as an MCP server over stdio. Add to your MCP client config:
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "display": {
52
+ "command": "dsp",
53
+ "args": ["mcp"],
54
+ "env": {
55
+ "DISPLAY_API_KEY": "sk_live_..."
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ```
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@displaydev/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
- "dsp": "./dist/main.js"
6
+ "dsp": "dist/main.js"
7
7
  },
8
8
  "files": [
9
9
  "dist",