Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@posthog/cli

Package Overview
Dependencies
Maintainers
15
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posthog/cli - npm Package Compare versions

Comparing version
0.5.22
to
0.5.23
+4
-0
CHANGELOG.md
# posthog-cli
# 0.5.23
- feat: add experimental commands for endpoints management
# 0.5.22

@@ -4,0 +8,0 @@

+2
-2

@@ -26,3 +26,3 @@ {

"name": "@posthog/cli",
"version": "0.5.22"
"version": "0.5.23"
},

@@ -519,3 +519,3 @@ "node_modules/@isaacs/balanced-match": {

"requires": true,
"version": "0.5.22"
"version": "0.5.23"
}
{
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.5.22",
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.5.23",
"bin": {

@@ -119,3 +119,3 @@ "posthog-cli": "run-posthog-cli.js"

},
"version": "0.5.22",
"version": "0.5.23",
"volta": {

@@ -122,0 +122,0 @@ "node": "18.14.1",

@@ -13,2 +13,3 @@ # The Posthog CLI

sourcemap Upload a directory of bundled chunks to PostHog
exp Contains a set of experimental commands
help Print this message or the help of the given subcommand(s)

@@ -27,3 +28,16 @@

- `POSTHOG_CLI_HOST`: The PostHog host to connect to [default: https://us.posthog.com]
- `POSTHOG_CLI_TOKEN`: [A posthog person API key.](https://posthog.com/docs/api#private-endpoint-authentication)
- `POSTHOG_CLI_TOKEN`: [A posthog personal API key.](https://posthog.com/docs/api#private-endpoint-authentication)
- `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`
### Personal API key scopes
Commands require different API scopes. Make sure to set these scopes on your personal API key:
| Command | Required Scopes |
| ----------------------------- | ------------------------------------------ |
| `query` | `query:read` |
| `sourcemap` | `error_tracking:write` |
| `exp endpoints list/get/pull` | `endpoint:read` |
| `exp endpoints push` | `endpoint:write`, `insight_variable:write` |
| `exp endpoints run` | `query:read` |
| `exp tasks` | `task:read` |