@joripspace/cli 0.7.0 → 0.8.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 +21 -21
- package/README.md +274 -243
- package/THIRD_PARTY_NOTICES.md +136 -136
- package/bin/joripspace.js +34 -163
- package/lib/approval-login.js +88 -0
- package/lib/connection-persistence.js +1 -1
- package/lib/credential-store.js +2 -2
- package/lib/deployment-error.js +14 -14
- package/lib/help.js +17 -15
- package/lib/login-command.js +19 -0
- package/lib/project-create.js +1 -1
- package/lib/secret-commands.js +5 -5
- package/lib/start-command.js +5 -6
- package/lib/start.js +1 -1
- package/package.json +48 -48
- package/vendor/core/cli-onboarding.cjs +7 -6
- package/vendor/core/onboarding.cjs +14 -17
- package/vendor/core/secret-entry.cjs +38 -0
- package/vendor/core/template-publish-workflow.cjs +169 -169
- package/vendor/templates/index.js +104 -104
- package/vendor/templates/templates/basic-worker/files/worker.js +9 -9
- package/vendor/templates/templates/basic-worker/manifest.json +14 -14
- package/vendor/templates/templates/r2-file-api/files/worker.js +42 -42
- package/vendor/templates/templates/r2-file-api/manifest.json +7 -7
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Cosmosfarm Software
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cosmosfarm Software
|
|
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,93 +1,110 @@
|
|
|
1
|
-
# JoripSpace CLI
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
joripspace
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
1
|
+
# JoripSpace CLI
|
|
2
|
+
|
|
3
|
+
## Approval links in 0.8.0
|
|
4
|
+
|
|
5
|
+
CLI 0.8.0 uses browser approval links for new connections. Existing valid CLI logins and MCP OAuth sessions are reused. Only the server retains code APIs for previously released clients.
|
|
6
|
+
|
|
7
|
+
For a new connection, run:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
joripspace login --no-open --json --cwd PROJECT_ROOT
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The CLI checks server support and emits an `approval_pending` JSON event to **stderr** containing a five-minute `approval_url` and `next_action`. Show that link to the user and keep the same process running. The user signs in, checks the account and approves; no code is copied. Interactive `login` opens the browser unless `--no-open` is set. With `--json`, the CLI prints the link without opening a browser. The CLI then stores the credential and writes one final JSON result to **stdout** with `status`, `next_action` and, when a project is selected, `next_command`. Never print credentials or the private polling secret; that secret stays in process memory.
|
|
14
|
+
|
|
15
|
+
Current CLI login uses approval links only. Unsupported servers and errors stop login without switching authentication methods. Existing valid logins are reused. The server retains old code APIs only for previously released clients.
|
|
16
|
+
|
|
17
|
+
MCP uses the existing `start_login` to issue approval links and check them with `request_id` in the same initialized MCP session. Follow status, next_action, next_tool and interval; after connection call start_project_session without tokens. No code entry is required.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
**JoripSpace — Build and deploy web apps with AI agents. Powered by Cosmosfarm.**
|
|
21
|
+
|
|
22
|
+
The official command-line client for JoripSpace. Connect a project, deploy your app, and manage its database, files, Secrets, and realtime services from your terminal or coding agent.
|
|
23
|
+
|
|
24
|
+
The CLI runs on Windows, macOS, and Linux with **Node.js 18 or later and npm**. It runs directly in Node.js, so you do not need a TypeScript compiler or native build tools to install it.
|
|
25
|
+
|
|
26
|
+
[Website](https://joripspace.com) · [Documentation](https://joripspace.com/en/docs/) · [CLI reference](https://joripspace.com/en/docs/cli/) · [GitHub](https://github.com/JoripSpace/joripspace-cli) · [Support](mailto:support@cosmosfarm.com)
|
|
27
|
+
|
|
28
|
+
## Install and update
|
|
29
|
+
|
|
30
|
+
Install the CLI, then check the version your terminal runs:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
npm install -g @joripspace/cli@latest
|
|
34
|
+
joripspace --version
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
To update an existing installation, run the same install command again. Global installations do not update automatically. You can check the latest published version with:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npm view @joripspace/cli@latest version
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If the version stays the same after an update, your terminal may still be using an older installation. Check its location with `Get-Command joripspace -All` in PowerShell or `command -v joripspace` on macOS and Linux. For an npm installation, `npm root -g` shows the directory containing `@joripspace/cli/bin/joripspace.js`, which you can run with Node.
|
|
44
|
+
|
|
45
|
+
You can also run the CLI without a global installation:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
npx -y @joripspace/cli@latest --help
|
|
49
|
+
npx -y @joripspace/cli@latest start PROJECT --json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
This selects the latest published npm release. Replace `PROJECT` with your existing project name. Installing the package does not log you in or change your project settings.
|
|
53
|
+
|
|
54
|
+
## Connect a project
|
|
55
|
+
|
|
56
|
+
Open your project folder and run:
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
joripspace login
|
|
60
|
+
joripspace projects
|
|
61
|
+
joripspace start PROJECT --json
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The login command opens an approval link in your browser. Sign in if needed, check the account and approve the connection. Keep the command running until it confirms the connection, then run `start` for the selected project. For an agent, use `login --no-open --json`; the pending approval link is emitted to stderr.
|
|
65
|
+
|
|
66
|
+
`start` connects an existing project. It also prepares the project instructions for your agent and synchronizes source files when required by the connection. To create a project first, see [Create a project](#create-a-project) below.
|
|
67
|
+
|
|
68
|
+
To work in another folder, add `--cwd`. Quote paths that contain spaces:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
joripspace start my-app --cwd "my project" --json
|
|
72
|
+
joripspace get --cwd "my project" --json
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Without `--cwd`, the CLI uses the current folder and searches its parent folders for a project connection. The connected project name is recorded in `.joripspace/project`.
|
|
76
|
+
|
|
77
|
+
## Work with a coding agent
|
|
78
|
+
|
|
79
|
+
Use an agent that can run terminal commands, edit files, and access the network. You can send it this prompt after replacing `PROJECT` with your project name:
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
Help me get started with JoripSpace project "PROJECT".
|
|
83
|
+
1. Install or update the official CLI with npm install -g @joripspace/cli@latest.
|
|
84
|
+
Compare the version that actually runs with the latest version on npm.
|
|
85
|
+
If an older executable is still selected, find and use the updated npm CLI.
|
|
86
|
+
2. Run joripspace start PROJECT --json and read its onboarding guide
|
|
87
|
+
and the project instruction files to complete the connection.
|
|
88
|
+
3. Review the existing project and explain the next steps for my task.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
If approval is needed, run the returned login_command, show its approval_url and wait for the connected result, then run resume_command. No code entry is required:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
joripspace login --no-open --json
|
|
95
|
+
joripspace start PROJECT --json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The CLI connection works without a plugin or MCP setup. If you also use MCP, its client has a separate sign-in process. Reuse a saved CLI login or complete the CLI connection flow when switching between them. See the [MCP connection guide](https://joripspace.com/en/docs/mcp/) for client setup and tool details.
|
|
99
|
+
|
|
100
|
+
### Project instructions
|
|
101
|
+
|
|
102
|
+
`start` returns a guide and writes it into a marked JoripSpace section in `AGENTS.md`. New files place `User instructions` first, followed by `JoripSpace managed instructions`. Existing user content is preserved, and `CLAUDE.md` keeps a reference to `AGENTS.md`.
|
|
103
|
+
|
|
104
|
+
Your agent can use the returned guide immediately. If it does not load project files automatically, ask it to read the listed files in the current conversation. No agent restart is needed for this workflow.
|
|
105
|
+
|
|
106
|
+
The guide explains how to find relevant CLI help, MCP tools, and task guidance as needed. You do not have to copy every command option into your project instructions. The [task workflows](https://joripspace.com/en/docs/agent-workflows/) show how to use these tools for deployment, database changes, service connections, and reports.
|
|
107
|
+
|
|
91
108
|
## Repeatable app deployment
|
|
92
109
|
|
|
93
110
|
For a direct-deployment project, build the app and identify the bundled Worker entrypoint and assets.
|
|
@@ -131,156 +148,170 @@ Without MCP, fetch `https://api.joripspace.com/onboarding.md` and use the sectio
|
|
|
131
148
|
`# JoripSpace project onboarding` to refresh only the bounded JoripSpace block in `AGENTS.md` and maintain the
|
|
132
149
|
`CLAUDE.md` import. Preserve user instructions, the project marker, credentials, and application files.
|
|
133
150
|
|
|
134
|
-
## Find a command
|
|
135
|
-
|
|
136
|
-
Start with the CLI help, then open the help for the command you want to use:
|
|
137
|
-
|
|
138
|
-
```sh
|
|
139
|
-
joripspace --help
|
|
140
|
-
joripspace deploy --help
|
|
141
|
-
joripspace report --help
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
| Task | Commands |
|
|
145
|
-
| --- | --- |
|
|
146
|
-
| Connect and inspect a project | `login`, `start`, `projects`, `get` |
|
|
147
|
-
| Deploy and inspect history | `deploy`, `deployments`, `deployment get`, `deployment pull`, `rollback` |
|
|
148
|
-
| Find and install templates | `templates`, `template list`, `install-template`, `template pull` |
|
|
149
|
-
| Work with a database | `db schema`, `db query`, `db migrate` |
|
|
150
|
-
| Manage stored files | `storage list`, `storage get`, `storage put`, `storage delete` |
|
|
151
|
-
| Save and restore work | `checkpoint save`, `checkpoint list`, `checkpoint restore`, `checkpoint deploy` |
|
|
152
|
-
| Manage Secrets | `secret list`, `secret generate`, `secret set`, `secret update` |
|
|
153
|
-
| Manage realtime services | `realtime-v2 status`, `realtime-v2 activate`, `realtime-v2 keys` |
|
|
154
|
-
| Connect domains, schedules, and mail | `domain`, `cron`, `mail` |
|
|
155
|
-
| Inspect errors and usage | `events`, `usage-summary`, `usage-breakdown` |
|
|
156
|
-
| Prepare GitHub workflows or find guidance | `github prepare`, `knowledge search` |
|
|
157
|
-
| Report a problem or suggest an improvement | `report` |
|
|
158
|
-
| Identify or revoke a connection token | `tokens current`, `tokens revoke` |
|
|
159
|
-
|
|
160
|
-
The [CLI reference](https://joripspace.com/en/docs/cli/) covers the command groups and common options. GitHub source synchronization and template Git history features also require Git.
|
|
161
|
-
|
|
162
|
-
## Report a problem or suggest an improvement
|
|
163
|
-
|
|
164
|
-
Use `report` while connected to the relevant project. Choose `problem` for a general issue, `bug` for a defect, or `feedback` for an improvement idea:
|
|
165
|
-
|
|
166
|
-
```sh
|
|
167
|
-
joripspace report --project PROJECT --category bug --summary "Deployment status is incorrect" --details "Steps to reproduce the issue" --json
|
|
168
|
-
joripspace
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
A summary is required. You can add context with `--details`, describe the desired and current behavior with `--expected` and `--actual`, or include an error code with `--error-code`. CLI, Node.js, and OS information is attached automatically.
|
|
172
|
-
|
|
173
|
-
Review the content before sending and leave out credentials, personal data, and private source code. If you are working with an agent, ask it to submit the report when you are ready. A successful response includes the report ID, `report_id`. If the response is interrupted, the report may already have been received, so avoid sending the same report repeatedly.
|
|
174
|
-
|
|
175
|
-
`feedback` is a
|
|
176
|
-
|
|
177
|
-
## Revoke an exposed connection token
|
|
178
|
-
|
|
179
|
-
If a connection token has been exposed, you can disable it on the server. First check its ID, then revoke the current token:
|
|
180
|
-
|
|
181
|
-
```sh
|
|
182
|
-
joripspace tokens current
|
|
183
|
-
joripspace tokens revoke --current
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
`tokens current` shows the ID without revealing the token value. Revoking the token ends the current connection and any MCP sessions using the same token.
|
|
187
|
-
|
|
188
|
-
To revoke a token from an older connection, sign in with another valid token in the same account and specify the exact ID:
|
|
189
|
-
|
|
190
|
-
```sh
|
|
191
|
-
joripspace tokens revoke --token-id TOKEN_ID
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
Check the target ID before running the command. You can also disable tokens on the API token page in your web profile. These CLI commands are available in 0.6.1 and later. `logout` removes a saved local login; it does not revoke the server token.
|
|
195
|
-
|
|
196
|
-
## Saved logins
|
|
197
|
-
|
|
198
|
-
The CLI saves new logins in Windows Credential Manager, macOS Keychain, or Linux Secret Service when available. You can reuse that login across project folders under the same OS account. The project's Git-ignored `.env.joripspace` then contains only connection details such as the API URL, account ID, and connection source. An ordinary application `.env` file is not used for CLI authentication.
|
|
199
|
-
|
|
200
|
-
If an OS credential store is unavailable before saving, the CLI stores the token in the selected project's `.env.joripspace` instead. This fallback is used only for that project. Keep the file out of Git, deployments, and checkpoints. The login response identifies the storage method as `os-credential-store` or `project-env-fallback`.
|
|
201
|
-
|
|
202
|
-
If an OS credential write or verification fails, login stops without creating a file fallback. Once the store is available, running `login` can move an existing project-file token into it and remove the token from the file.
|
|
203
|
-
|
|
204
|
-
`logout` removes the saved token entries in the current project file and the matching OS credential when available. Because an OS login is shared, removing it also affects other folders that use it. Other legacy folders and credentials supplied through environment variables are separate. A later OS login can be reused across folders, including folders where you previously logged out.
|
|
205
|
-
|
|
206
|
-
For automation, supply `JORIPSPACE_API_TOKEN` and its matching `JORIPSPACE_API_URL` through the process environment. The default API address is `https://api.joripspace.com`; `--api-url` can select another endpoint. Existing project markers, `--project`, environment authentication, and legacy credential migration remain supported.
|
|
207
|
-
|
|
208
|
-
## Project Secrets
|
|
209
|
-
|
|
210
|
-
If your app needs a random value, such as a session signing key, generate one without displaying it:
|
|
211
|
-
|
|
212
|
-
```sh
|
|
213
|
-
joripspace secret generate --name SESSION_SECRET --json
|
|
214
|
-
joripspace secret list --json
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
An existing active value is preserved. For a key issued by an external provider, use `secret set --name API_KEY --value-stdin --json`, or its alias, `secret update`. Pass the exact value through standard input rather than command arguments, chat, logs, source, or temporary project files. Input must be 1–5120 UTF-8 bytes; whitespace and newlines are preserved. Secret values are never returned.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
The
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
151
|
+
## Find a command
|
|
152
|
+
|
|
153
|
+
Start with the CLI help, then open the help for the command you want to use:
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
joripspace --help
|
|
157
|
+
joripspace deploy --help
|
|
158
|
+
joripspace report --help
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
| Task | Commands |
|
|
162
|
+
| --- | --- |
|
|
163
|
+
| Connect and inspect a project | `login`, `start`, `projects`, `get` |
|
|
164
|
+
| Deploy and inspect history | `deploy`, `deployments`, `deployment get`, `deployment pull`, `rollback` |
|
|
165
|
+
| Find and install templates | `templates`, `template list`, `install-template`, `template pull` |
|
|
166
|
+
| Work with a database | `db schema`, `db query`, `db migrate` |
|
|
167
|
+
| Manage stored files | `storage list`, `storage get`, `storage put`, `storage delete` |
|
|
168
|
+
| Save and restore work | `checkpoint save`, `checkpoint list`, `checkpoint restore`, `checkpoint deploy` |
|
|
169
|
+
| Manage Secrets | `secret list`, `secret generate`, `secret set`, `secret update` |
|
|
170
|
+
| Manage realtime services | `realtime-v2 status`, `realtime-v2 activate`, `realtime-v2 keys` |
|
|
171
|
+
| Connect domains, schedules, and mail | `domain`, `cron`, `mail` |
|
|
172
|
+
| Inspect errors and usage | `events`, `usage-summary`, `usage-breakdown` |
|
|
173
|
+
| Prepare GitHub workflows or find guidance | `github prepare`, `knowledge search` |
|
|
174
|
+
| Report a problem or suggest an improvement | `report`, `feedback` |
|
|
175
|
+
| Identify or revoke a connection token | `tokens current`, `tokens revoke` |
|
|
176
|
+
|
|
177
|
+
The [CLI reference](https://joripspace.com/en/docs/cli/) covers the command groups and common options. GitHub source synchronization and template Git history features also require Git.
|
|
178
|
+
|
|
179
|
+
## Report a problem or suggest an improvement
|
|
180
|
+
|
|
181
|
+
Use `report` while connected to the relevant project. Choose `problem` for a general issue, `bug` for a defect, or `feedback` for an improvement idea:
|
|
182
|
+
|
|
183
|
+
```sh
|
|
184
|
+
joripspace report --project PROJECT --category bug --summary "Deployment status is incorrect" --details "Steps to reproduce the issue" --json
|
|
185
|
+
joripspace feedback --project PROJECT --summary "Add deployment history filters" --expected "Search by label" --json
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
A summary is required. You can add context with `--details`, describe the desired and current behavior with `--expected` and `--actual`, or include an error code with `--error-code`. CLI, Node.js, and OS information is attached automatically.
|
|
189
|
+
|
|
190
|
+
Review the content before sending and leave out credentials, personal data, and private source code. If you are working with an agent, ask it to submit the report when you are ready. A successful response includes the report ID, `report_id`. If the response is interrupted, the report may already have been received, so avoid sending the same report repeatedly.
|
|
191
|
+
|
|
192
|
+
`feedback` is a CLI 0.8.0 wrapper for `report --category feedback`. It shares the same options, authentication, submission and response. Use `feedback --help` for details. Older CLIs can use `report --category feedback`, available since 0.6.1. MCP agents also submit feedback through the CLI.
|
|
193
|
+
|
|
194
|
+
## Revoke an exposed connection token
|
|
195
|
+
|
|
196
|
+
If a connection token has been exposed, you can disable it on the server. First check its ID, then revoke the current token:
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
joripspace tokens current
|
|
200
|
+
joripspace tokens revoke --current
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
`tokens current` shows the ID without revealing the token value. Revoking the token ends the current connection and any MCP sessions using the same token. Run `joripspace login` to approve a new connection.
|
|
204
|
+
|
|
205
|
+
To revoke a token from an older connection, sign in with another valid token in the same account and specify the exact ID:
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
joripspace tokens revoke --token-id TOKEN_ID
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Check the target ID before running the command. You can also disable tokens on the API token page in your web profile. These CLI commands are available in 0.6.1 and later. `logout` removes a saved local login; it does not revoke the server token.
|
|
212
|
+
|
|
213
|
+
## Saved logins
|
|
214
|
+
|
|
215
|
+
The CLI saves new logins in Windows Credential Manager, macOS Keychain, or Linux Secret Service when available. You can reuse that login across project folders under the same OS account. The project's Git-ignored `.env.joripspace` then contains only connection details such as the API URL, account ID, and connection source. An ordinary application `.env` file is not used for CLI authentication.
|
|
216
|
+
|
|
217
|
+
If an OS credential store is unavailable before saving, the CLI stores the token in the selected project's `.env.joripspace` instead. This fallback is used only for that project. Keep the file out of Git, deployments, and checkpoints. The login response identifies the storage method as `os-credential-store` or `project-env-fallback`.
|
|
218
|
+
|
|
219
|
+
If an OS credential write or verification fails, login stops without creating a file fallback. Once the store is available, running `login` can move an existing project-file token into it and remove the token from the file.
|
|
220
|
+
|
|
221
|
+
`logout` removes the saved token entries in the current project file and the matching OS credential when available. Because an OS login is shared, removing it also affects other folders that use it. Other legacy folders and credentials supplied through environment variables are separate. A later OS login can be reused across folders, including folders where you previously logged out.
|
|
222
|
+
|
|
223
|
+
For automation, supply `JORIPSPACE_API_TOKEN` and its matching `JORIPSPACE_API_URL` through the process environment. The default API address is `https://api.joripspace.com`; `--api-url` can select another endpoint. Existing project markers, `--project`, environment authentication, and legacy credential migration remain supported.
|
|
224
|
+
|
|
225
|
+
## Project Secrets
|
|
226
|
+
|
|
227
|
+
If your app needs a random value, such as a session signing key, generate one without displaying it:
|
|
228
|
+
|
|
229
|
+
```sh
|
|
230
|
+
joripspace secret generate --name SESSION_SECRET --json
|
|
231
|
+
joripspace secret list --json
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
An existing active value is preserved. For a key issued by an external provider, use `secret set --name API_KEY --value-stdin --json`, or its alias, `secret update`. Pass the exact value through standard input rather than command arguments, chat, logs, source, or temporary project files. Input must be 1–5120 UTF-8 bytes; whitespace and newlines are preserved. Secret values are never returned.
|
|
235
|
+
|
|
236
|
+
### Let the user enter a value
|
|
237
|
+
|
|
238
|
+
When the user needs to supply a value, prepare a link for the required key:
|
|
239
|
+
|
|
240
|
+
```sh
|
|
241
|
+
joripspace secret list --project PROJECT --name SECRET_NAME --json
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
This reads the registered key metadata without creating or changing a value. Show the returned `secret_management_url` as a clickable link and explain what the value is needed for. The page opens with the key selected and the value field focused. The user enters the value and selects **Save**, or **Update** when replacing an existing value. Values do not belong in chat or URLs. Do not generate a placeholder for a value the user must supply.
|
|
245
|
+
|
|
246
|
+
After the user confirms saving, run the same command again. Confirm that the key is registered; for a replacement, require `updated_at` to be newer than the initial `secret_entry.previous_updated_at`. Then test the feature that uses the value. The API's `active` status means the key is registered; it does not prove the application is using it or that an external service connection works.
|
|
247
|
+
|
|
248
|
+
`secret_entry.verify_with` supplies CLI arguments and the existing MCP `list_secrets` call for this check. MCP accepts the same optional `name` argument. Keep the initial replacement timestamp until verification is complete.
|
|
249
|
+
|
|
250
|
+
The Secret page also provides **Change** and **Delete** for each key. Change opens that key's value field; deletion requires confirmation. Secret deletion remains a web operation. All changes require project access and a valid, non-reserved key name.
|
|
251
|
+
|
|
252
|
+
## Create a project
|
|
253
|
+
|
|
254
|
+
To create a new Free project, run `joripspace create --name my-app --json` first. It returns all three required agreements
|
|
255
|
+
in English with the Korean web originals. Login is verified with the server before any agreements are shown;
|
|
256
|
+
missing or revoked credentials stop creation. Agents must present the agreements faithfully in the user's language
|
|
257
|
+
and obtain explicit consent before rerunning with `--agree-noncommercial --agree-billing --agree-retention --json`. Interactive
|
|
258
|
+
terminals ask each agreement separately. `--yes` cannot replace consent. Web/server name restrictions and uniqueness
|
|
259
|
+
checks apply. Creation does not link or change local project source; use `start` separately when requested.
|
|
260
|
+
|
|
261
|
+
## JSON output and agent integrations
|
|
262
|
+
|
|
263
|
+
Add `--json` for structured output without browser launch or interactive prompts. Successful results go to stdout, and errors go to stderr. Existing result fields and exit codes `0`, `1`, and `2` are preserved. The shared agent guide is English; CLI notices and prompts follow the OS locale, using Korean for `ko` and English otherwise. JSON field names and error codes remain unchanged. Agreement payloads retain the English text and Korean originals so agents can explain them in your conversation language.
|
|
264
|
+
|
|
265
|
+
The `onboarding` object provides `schema_version`, `instructions`, `read_files`, `invocation`, and `commands`. It also appears under `error.details.onboarding` when authentication is required, along with the login and resume steps.
|
|
266
|
+
|
|
267
|
+
For tools that accept a command and argument list, run `invocation.command`, append CLI arguments after `invocation.args`, and use `invocation.cwd` as the working folder. With an npm installation, this runs Node with the absolute JavaScript entrypoint. The `executable`, `login_command`, `resume_command`, and `install_command` fields remain available for existing integrations. In PowerShell, use `&` before a quoted executable path.
|
|
268
|
+
|
|
269
|
+
If an interactive connection cannot open a browser, open the printed URL yourself. Interactive `start` uses Windows `cmd.exe`, macOS `open`, or Linux `xdg-open` for that step.
|
|
270
|
+
|
|
271
|
+
## What's new in 0.6.1
|
|
272
|
+
|
|
273
|
+
- Submit improvement suggestions with `report --category feedback` and read the dedicated `report --help`.
|
|
274
|
+
- Identify the current connection token and revoke exposed tokens with `tokens current` and `tokens revoke`.
|
|
275
|
+
- Keep user instructions separate from the managed JoripSpace section in `AGENTS.md`, with existing user content preserved.
|
|
276
|
+
- The onboarding guide now asks your coding agent to check the running CLI version against npm, use the CLI when available, and keep CLI and MCP logins separate.
|
|
277
|
+
- Find current command options and task guidance as needed, with links to the public CLI, MCP, and workflow documentation.
|
|
278
|
+
|
|
279
|
+
## Development and package verification
|
|
280
|
+
|
|
281
|
+
This repository works independently of the platform repository and runs without a compilation step. To check the source and package:
|
|
282
|
+
|
|
283
|
+
```sh
|
|
284
|
+
npm ci --ignore-scripts
|
|
285
|
+
npm run check
|
|
286
|
+
npm test
|
|
287
|
+
npm run test:package
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
The package's `prepack` check validates metadata, JavaScript syntax, the Node shebang, and executable permissions. There are no installation lifecycle hooks.
|
|
291
|
+
|
|
292
|
+
`test:package` builds a tarball in `.artifacts/` and checks its contents, hashes, licenses, and permissions. It then verifies clean installation, npx, npm exec, arguments, output, exit codes, working folders, cancellation, and saved login reuse against a local mock API. Temporary test folders include paths with spaces and Korean characters. Production projects and real user credentials are not used.
|
|
293
|
+
|
|
294
|
+
Set `JORIPSPACE_BASELINE_CLI` to an original `bin/joripspace.js` to compare against that CLI. Otherwise, comparisons use this repository's source. To try the tarball before publishing:
|
|
295
|
+
|
|
296
|
+
```sh
|
|
297
|
+
npm exec --yes --package="/absolute/path/joripspace-cli-VERSION.tgz" -- joripspace --help
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Replace `VERSION` with the tarball version. On Windows, use a path such as `C:/path/to/joripspace-cli-VERSION.tgz`. See the [release guide](https://github.com/JoripSpace/joripspace-cli/blob/main/docs/release.md) for the local publishing procedure. Package checks and npm publishing run locally; this repository does not use GitHub Actions for them.
|
|
301
|
+
|
|
302
|
+
## License
|
|
303
|
+
|
|
304
|
+
JoripSpace CLI is available under the [MIT License](LICENSE).
|
|
305
|
+
|
|
306
|
+
Copyright (c) 2026 Cosmosfarm Software
|
|
307
|
+
|
|
308
|
+
Use of the JoripSpace cloud service is subject to separate service terms and pricing plans. Platform server, administration, and infrastructure code are not included in this CLI distribution. Included Worker examples are public customer templates.
|
|
309
|
+
|
|
310
|
+
Third-party dependencies retain their original licenses and copyrights. See [Third-party notices](THIRD_PARTY_NOTICES.md) for the preserved license texts.
|
|
311
|
+
|
|
312
|
+
## Support
|
|
313
|
+
|
|
314
|
+
- Documentation: [CLI reference](https://joripspace.com/en/docs/cli/) · [MCP connection and tools](https://joripspace.com/en/docs/mcp/) · [Task workflows](https://joripspace.com/en/docs/agent-workflows/)
|
|
315
|
+
- Platform problems and suggestions: use `joripspace report` from a connected project.
|
|
316
|
+
- CLI repository issues: [GitHub Issues](https://github.com/JoripSpace/joripspace-cli/issues)
|
|
317
|
+
- Email: [support@cosmosfarm.com](mailto:support@cosmosfarm.com)
|