@theopenapps/cli 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The Open Apps, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,35 @@
1
- # Temporary Holding Version
1
+ # @theopenapps/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `openapps` reads the [OpenApps](https://theopenapps.com) API from a terminal: what is listed, ranked, featured and launched in the ChatGPT, Claude, Cursor, Grok Bot, Perplexity and Muse app stores, and the tools of the MCP servers their apps link to. Public reads need no account.
4
+
5
+ ```sh
6
+ npx @theopenapps/cli charts get claude popularity
7
+ npm install -g @theopenapps/cli
8
+ openapps changes list chatgpt --since=-7d --types rank_move,chart_enter
9
+ openapps apps search context7 --store cursor --format csv
10
+ openapps apps metrics claude:plugin_01E5qTAcHfq3r1UJ8Zxgzjae --json
11
+ ```
12
+
13
+ Commands are `openapps <resource> <verb>`, one per API operation. `openapps --help` lists them, and `openapps <resource> <verb> --help` shows a command's arguments, flags and examples. Output is JSON when stdout is not a terminal and a table when it is; `--format json|table|csv|md` and `--fields a,b` choose otherwise. Inputs are checked before any request, and unknown enum values print the allowed ones.
14
+
15
+ Exit codes: 0 ok, 1 other error, 2 usage or invalid input, 3 not found, 4 rate-limited.
16
+
17
+ `openapps agent-context` prints the JSON an agent needs to use the API, and `openapps mcp-url` prints the MCP server URL. `--base-url` or `OPENAPPS_BASE_URL` points the CLI at another deployment, such as `http://localhost:8788/v1` under `wrangler dev`.
18
+
19
+ ## Signing in
20
+
21
+ Without an account the CLI reads what a signed-out visitor sees: the United States and the top rows of each list, at 60 calls a minute. A free account adds every country and deeper lists, and Pro shows everything.
22
+
23
+ ```sh
24
+ openapps auth login # opens your browser to sign in and approve the CLI
25
+ openapps auth status # which credential calls use
26
+ openapps auth logout # revokes this computer's sign-in
27
+ ```
28
+
29
+ `auth login` signs in with OAuth. It opens your browser, you approve the OpenApps CLI, and the browser returns to the CLI on `127.0.0.1`. The CLI keeps the tokens in `~/.config/openapps/auth.json` (or `$XDG_CONFIG_HOME/openapps`, `%APPDATA%\openapps` on Windows, `OPENAPPS_CONFIG_DIR` to choose), readable by your user alone, and sends them only to the deployment that issued them. Access renews itself for 30 days, then the CLI asks you to sign in again. `--no-browser` prints the link without opening it. The account page's Connected apps lists the sign-in and can revoke it.
30
+
31
+ On a computer without a browser, such as a server or CI, create a key in your [OpenApps account](https://theopenapps.com/account/keys) and set `OPENAPPS_API_KEY`. A key wins over a sign-in. The CLI sends it as a bearer header, follows no redirects, and sends it only to `https://theopenapps.com`; set `OPENAPPS_AUTH_ORIGIN` to another deployment's origin to send it there. Keys expire after 90 days and can be revoked from the account page.
32
+
33
+ ## Releases
34
+
35
+ Every deploy of OpenApps that changes the CLI or the API contract it was built from publishes a new patch version to npm (`cli/release.ts`). A CLI built against an older contract still works and prints a one-line notice to update.