@posthog/cli 0.0.7 → 0.1.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 +2 -21
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The command line interface for PostHog 🦔
|
|
|
7
7
|
Usage: posthog-cli [OPTIONS] <COMMAND>
|
|
8
8
|
|
|
9
9
|
Commands:
|
|
10
|
-
login Interactively authenticate with PostHog, storing a personal API token locally. You can also use the environment variables `POSTHOG_CLI_TOKEN` and `
|
|
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
13
|
help Print this message or the help of the given subcommand(s)
|
|
@@ -21,25 +21,6 @@ Options:
|
|
|
21
21
|
## Env-based Authentication
|
|
22
22
|
|
|
23
23
|
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
|
+
- `POSTHOG_CLI_HOST`: The PostHog host to connect to [default: https://us.posthog.com]
|
|
24
25
|
- `POSTHOG_CLI_TOKEN`: [A posthog person API key.](https://posthog.com/docs/api#private-endpoint-authentication)
|
|
25
26
|
- `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`
|
|
26
|
-
|
|
27
|
-
## Releases
|
|
28
|
-
|
|
29
|
-
Releases are cut by pushing a release tag to the repository, for the `posthog-cli` app. Generally we want to do this on a branch,
|
|
30
|
-
and bump the package version number at the same time.
|
|
31
|
-
```bash
|
|
32
|
-
git checkout -b "cli/release-v0.1.0-pre1"
|
|
33
|
-
# Bump version number in Cargo.toml
|
|
34
|
-
git add .
|
|
35
|
-
git commit -m "Bump version number"
|
|
36
|
-
git tag "posthog-cli-v0.1.0-prerelease.1"
|
|
37
|
-
git push
|
|
38
|
-
git push --tags
|
|
39
|
-
# Optional - also publish to crates.io
|
|
40
|
-
cd cli && cargo publish
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
We manage publishing releases through [`cargo-dist`](https://github.com/axodotdev/cargo-dist)
|
|
44
|
-
|
|
45
|
-
We release semi-regularly, as new features are added. If a release breaks your CI or workflow, please open an issue on GitHub, and tag one or all of the crate authors
|
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.0
|
|
26
|
+
"version": "0.1.0"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/cliui": {
|
|
29
29
|
"dependencies": {
|
|
@@ -713,5 +713,5 @@
|
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
"requires": true,
|
|
716
|
-
"version": "0.0
|
|
716
|
+
"version": "0.1.0"
|
|
717
717
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.0
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.1.0",
|
|
3
3
|
"bin": {
|
|
4
4
|
"posthog-cli": "run-posthog-cli.js"
|
|
5
5
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"zipExt": ".tar.xz"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"version": "0.0
|
|
105
|
+
"version": "0.1.0",
|
|
106
106
|
"volta": {
|
|
107
107
|
"node": "18.14.1",
|
|
108
108
|
"npm": "9.5.0"
|