@snowplow/snowplow-cli-linux-amd64 0.2.0 → 0.3.0

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
@@ -111,4 +111,61 @@ This repository includes a GitHub Actions workflow that connects directly with C
111
111
  - An issue is opened or assigned with `@claude` in the title or body
112
112
  - A pull request is opened, triggering an automatic Claude review
113
113
 
114
- This lets team members request Claude’s help on code reviews, bug fixes, and development tasks directly in GitHub. Claude can read CI results, write to PRs, and manage issues as needed for collaboration.
114
+ This lets team members request Claude’s help on code reviews, bug fixes, and development tasks directly in GitHub. Claude can read CI results, write to PRs, and manage issues as needed for collaboration.
115
+
116
+ ## Sending events (`events send`)
117
+
118
+ Send a single self-describing event to a Snowplow collector:
119
+
120
+ ```bash
121
+ snowplow-cli events send \
122
+ --collector collector.example.com \
123
+ --schema iglu:com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0 \
124
+ --json '{"category":"test","action":"click"}'
125
+ ```
126
+
127
+ Or pass a full self-describing JSON:
128
+
129
+ ```bash
130
+ snowplow-cli events send \
131
+ --collector collector.example.com \
132
+ --sdjson '{"schema":"iglu:com.snowplowanalytics.snowplow/custom_event/jsonschema/1-0-0","data":{"category":"test","action":"click"}}'
133
+ ```
134
+
135
+ | Flag | Short | Default | Description |
136
+ |------|-------|---------|-------------|
137
+ | `--collector` | `-c` | — | Collector domain (required) |
138
+ | `--app-id` | `-a` | `snowplowcli` | Application ID |
139
+ | `--method` | `-m` | `POST` | HTTP method (`POST`/`GET`) |
140
+ | `--protocol` | `-p` | `https` | Protocol (`http`/`https`) |
141
+ | `--sdjson` | `-J` | — | Self-describing JSON `{"schema":...,"data":...}` |
142
+ | `--schema` | `-d` | — | Schema (data structure) URI |
143
+ | `--json` | `-j` | — | Non-self-describing JSON data |
144
+ | `--ip-address` | `-i` | — | Custom IP address |
145
+ | `--entities` | `-e` | `[]` | JSON array of entities to attach |
146
+
147
+ Exit codes: `0` (2xx/3xx), `4` (4xx), `5` (5xx), `1` (validation or other error).
148
+
149
+ ### Migrating from `snowplow-tracking-cli`
150
+
151
+ `events send` aims to replace the standalone `snowplow-tracking-cli`. The behavior — building a
152
+ self-describing event and sending it once — is unchanged, including the `0/4/5/1` exit
153
+ codes and the validation rules. Only the command prefix and some flag names change.
154
+
155
+ ```bash
156
+ # before
157
+ snowplow-tracking-cli --collector collector.example.com --schema iglu:... --json '{...}'
158
+
159
+ # after
160
+ snowplow-cli events send --collector collector.example.com --schema iglu:... --json '{...}'
161
+ ```
162
+
163
+ Flag mapping:
164
+
165
+ | Old | New | Note |
166
+ |-----|-----|------|
167
+ | `--appid` / `-id` | `--app-id` / `-a` | renamed (kebab-case); old name still works but is deprecated; default now `snowplowcli` |
168
+ | `--sdjson` / `-sdj` | `--sdjson` / `-J` | new shorthand |
169
+ | `--schema` / `-s` | `--schema` / `-d` | new shorthand |
170
+ | `--ipaddress` / `-ip` | `--ip-address` / `-i` | renamed (kebab-case); old name still works but is deprecated |
171
+ | `--contexts` / `-ctx` | `--entities` / `-e` | renamed to current Snowplow terminology |
package/bin/snowplow-cli CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowplow/snowplow-cli-linux-amd64",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "see license in LICENSE.md",
5
5
  "repository": "https://github.com/snowplow/snowplow-cli",
6
6
  "description": "snowplow cli for linux (amd64)",