usecloudy 0.0.0-stage → 0.3.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 -0
- package/README.md +97 -2
- package/dist/index.js +16387 -0
- package/package.json +39 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Cloudtifact authors
|
|
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,98 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Cloudy CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The command line for [Cloudy](https://cloudtifact.com): publish pages and docs folders as links
|
|
4
|
+
people comment on, keep every version, and give the comments back to your coding agent.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm i -g usecloudy
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The command it installs is `cloudy`. `cloudtifact` still works as the same command, so older scripts and hooks keep
|
|
11
|
+
running. The same CLI is also on npm under its old package name, `cloudtifact`, kept up to date for existing installs.
|
|
12
|
+
Both packages install the same commands, so keep only one: to move, run `npm rm -g cloudtifact`, then
|
|
13
|
+
`npm i -g usecloudy`.
|
|
14
|
+
|
|
15
|
+
Or run it once without installing: `npx usecloudy publish page.html`.
|
|
16
|
+
|
|
17
|
+
Without npm, use the install script:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
curl -fsSL https://api.cloudtifact.com/install.sh | sh
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The script puts the CLI in `~/.cloudtifact` (commands `cloudy` and `cloudtifact`) and adds `~/.cloudtifact/bin` to your PATH. Open a new terminal afterwards.
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
cloudy login
|
|
27
|
+
cloudy publish page.html # one page or folder → a link
|
|
28
|
+
cloudy copy https://cloudtifact.app/<id>/ # your own copy of a page someone sent
|
|
29
|
+
cloudy context pull --space <id> # Discord thread linked to the space
|
|
30
|
+
cloudy init && cloudy push # a repo's docs folder, versioned
|
|
31
|
+
cloudy comments --toon # what reviewers said, compact for agents
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Requires Node.js 20 or later. The CLI is one file with no dependencies.
|
|
35
|
+
|
|
36
|
+
## Update and remove
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
cloudy upgrade
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Installed with npm: `npm i -g usecloudy@latest` to update, `npm rm -g usecloudy` to remove (`cloudtifact` in
|
|
43
|
+
place of `usecloudy` if you installed the old package).
|
|
44
|
+
|
|
45
|
+
Installed with the script: `upgrade` downloads the latest CLI and replaces `~/.cloudtifact/cloudtifact.mjs`.
|
|
46
|
+
It prints the old and new version, or says the CLI is already up to date.
|
|
47
|
+
|
|
48
|
+
Once a day the CLI checks in the background for a newer version, and after a command tells you on one line when there
|
|
49
|
+
is one. It stays quiet with `--json` or `--toon`, when output goes to a file or another program, and in CI. To turn
|
|
50
|
+
it off, set `CLOUDTIFACT_NO_UPDATE_NOTIFIER=1`.
|
|
51
|
+
|
|
52
|
+
To remove a script install:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
rm -rf ~/.cloudtifact # the CLI
|
|
56
|
+
rm -f ~/.local/bin/cloudy ~/.local/bin/cloudtifact # the links, if the installer made them
|
|
57
|
+
rm -rf ~/.config/cloudtifact # the saved token (run `cloudy logout` first to revoke it)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
If the installer added a PATH line to your shell's startup file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile`,
|
|
61
|
+
`~/.profile` or `~/.config/fish/config.fish`), delete it too. It sits under a `# cloudtifact` comment and
|
|
62
|
+
mentions `.cloudtifact/bin`.
|
|
63
|
+
|
|
64
|
+
## More than one account
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
cloudy login # again, approving as your other account: adds it
|
|
68
|
+
cloudy accounts # * marks the active one
|
|
69
|
+
cloudy switch # toggle between two (or: switch <handle>)
|
|
70
|
+
cloudy push --account work # one command as another account
|
|
71
|
+
cloudy switch work --here # this repo always uses @work, on this machine
|
|
72
|
+
cloudy logout --account work # sign out of one (or --all)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
A folder set with `--here` never falls back to another account: if that account isn't signed in, the command stops.
|
|
76
|
+
|
|
77
|
+
## For agents
|
|
78
|
+
|
|
79
|
+
Add `--toon` (fewest tokens) or `--json` to commands that print data, or set `CLOUDTIFACT_FORMAT=toon`.
|
|
80
|
+
`cloudy init --hooks` installs a skill and hooks for Claude Code, Codex and Cursor.
|
|
81
|
+
|
|
82
|
+
## Configuration
|
|
83
|
+
|
|
84
|
+
| Variable | Use |
|
|
85
|
+
| --- | --- |
|
|
86
|
+
| `CLOUDTIFACT_API_URL` | Point at another Cloudy server (self-hosted). The saved token is only sent to the server it came from, so run `cloudy login` with it set to sign in there |
|
|
87
|
+
| `CLOUDTIFACT_FORMAT` | Default output: `text`, `toon` or `json` |
|
|
88
|
+
| `CLOUDTIFACT_ACCOUNT` | Use this signed-in account (a handle), like `--account` |
|
|
89
|
+
| `CLOUDTIFACT_TOKEN` | Use this token instead of any saved sign-in, for CI |
|
|
90
|
+
| `CLOUDTIFACT_NO_UPDATE_NOTIFIER` | `1`: never say when a newer CLI is out |
|
|
91
|
+
|
|
92
|
+
The tokens from `login` are stored in `~/.config/cloudtifact/config.json` (or `$XDG_CONFIG_HOME`).
|
|
93
|
+
|
|
94
|
+
## Docs
|
|
95
|
+
|
|
96
|
+
Every command and option: the [CLI reference](https://cloudtifact.com/docs/reference/cli).
|
|
97
|
+
|
|
98
|
+
MIT licensed.
|