@posthog/cli 0.5.22 → 0.5.24
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/CHANGELOG.md +8 -0
- package/README.md +15 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ Commands:
|
|
|
10
10
|
login Interactively authenticate with PostHog, storing a personal API token locally. You can also use the environment variables `POSTHOG_CLI_TOKEN`, `POSTHOG_CLI_ENV_ID` and `POSTHOG_CLI_HOST`
|
|
11
11
|
query Run a SQL query against any data you have in posthog. This is mostly for fun, and subject to change
|
|
12
12
|
sourcemap Upload a directory of bundled chunks to PostHog
|
|
13
|
+
exp Contains a set of experimental commands
|
|
13
14
|
help Print this message or the help of the given subcommand(s)
|
|
14
15
|
|
|
15
16
|
Options:
|
|
@@ -23,5 +24,18 @@ Options:
|
|
|
23
24
|
You can authenticate with PostHog interactively for using the CLI locally, but if you'd like to use it in a CI/CD pipeline, we recommend using these environment variables:
|
|
24
25
|
|
|
25
26
|
- `POSTHOG_CLI_HOST`: The PostHog host to connect to [default: https://us.posthog.com]
|
|
26
|
-
- `POSTHOG_CLI_TOKEN`: [A posthog
|
|
27
|
+
- `POSTHOG_CLI_TOKEN`: [A posthog personal API key.](https://posthog.com/docs/api#private-endpoint-authentication)
|
|
27
28
|
- `POSTHOG_CLI_ENV_ID`: The ID number of the project/environment to connect to. E.g. the "2" in `https://us.posthog.com/project/2`
|
|
29
|
+
|
|
30
|
+
### Personal API key scopes
|
|
31
|
+
|
|
32
|
+
Commands require different API scopes. Make sure to set these scopes on your personal API key:
|
|
33
|
+
|
|
34
|
+
| Command | Required Scopes |
|
|
35
|
+
| ----------------------------- | ------------------------------------------ |
|
|
36
|
+
| `query` | `query:read` |
|
|
37
|
+
| `sourcemap` | `error_tracking:write` |
|
|
38
|
+
| `exp endpoints list/get/pull` | `endpoint:read` |
|
|
39
|
+
| `exp endpoints push` | `endpoint:write`, `insight_variable:write` |
|
|
40
|
+
| `exp endpoints run` | `query:read` |
|
|
41
|
+
| `exp tasks` | `task:read` |
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "@posthog/cli",
|
|
26
|
-
"version": "0.5.
|
|
26
|
+
"version": "0.5.24"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/balanced-match": {
|
|
29
29
|
"engines": {
|
|
@@ -515,5 +515,5 @@
|
|
|
515
515
|
}
|
|
516
516
|
},
|
|
517
517
|
"requires": true,
|
|
518
|
-
"version": "0.5.
|
|
518
|
+
"version": "0.5.24"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.5.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.5.24",
|
|
3
3
|
"bin": {
|
|
4
4
|
"posthog-cli": "run-posthog-cli.js"
|
|
5
5
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"zipExt": ".tar.gz"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
"version": "0.5.
|
|
119
|
+
"version": "0.5.24",
|
|
120
120
|
"volta": {
|
|
121
121
|
"node": "18.14.1",
|
|
122
122
|
"npm": "9.5.0"
|