@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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # posthog-cli
2
2
 
3
+ # 0.5.23
4
+
5
+ - chore: add endpoints use case to cli auth flow
6
+
7
+ # 0.5.23
8
+
9
+ - feat: add experimental commands for endpoints management
10
+
3
11
  # 0.5.22
4
12
 
5
13
  - feat: add `--project` and `--version` to upload command to define release
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 person API key.](https://posthog.com/docs/api#private-endpoint-authentication)
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` |
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@posthog/cli",
26
- "version": "0.5.22"
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.22"
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.22",
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.22",
119
+ "version": "0.5.24",
120
120
  "volta": {
121
121
  "node": "18.14.1",
122
122
  "npm": "9.5.0"