@kikimoradev/kcloud 0.7.4

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +40 -0
  3. package/dist/main.js +5606 -0
  4. package/package.json +24 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kikimora
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 ADDED
@@ -0,0 +1,40 @@
1
+ # kcloud
2
+
3
+ The command line of a Kikimora Cloud instance. What the panel does with a project, this does from a
4
+ terminal: projects, credentials, repositories, tools, agents, their tasks, sessions, costs and logs.
5
+
6
+ ```sh
7
+ npm install -g @kikimoradev/kcloud
8
+ kcloud login --url https://kikimora.example.com
9
+ ```
10
+
11
+ `login` shows a code, opens the panel and waits until somebody approves the sign-in there. The token it
12
+ receives is stored in `~/.kikimora-cloud/cli.json` with mode 0600, one profile per instance.
13
+
14
+ ```sh
15
+ kcloud projects list
16
+ kcloud agents list --project acme
17
+ kcloud agents start acme/nightly
18
+ kcloud agents tasks add acme/nightly --title "Update the changelog" --description -
19
+ kcloud agents logs acme/nightly --follow
20
+ ```
21
+
22
+ An agent is named as `<project>/<agent>`, or alone with `--project`, or by its id. Every command that
23
+ reads takes `--json`, the two streams print NDJSON, and warnings go to stderr, so a pipeline can read
24
+ stdout as it is. A secret is never taken from a flag: `--secret-file`, `--secret-stdin` or an environment
25
+ variable carry it.
26
+
27
+ In a pipeline, `KIKIMORA_CLOUD_URL` and `KIKIMORA_CLOUD_TOKEN` replace the profile, and a token for that
28
+ is created under Access tokens in the panel:
29
+
30
+ ```sh
31
+ export KIKIMORA_CLOUD_URL=https://kikimora.example.com
32
+ export KIKIMORA_CLOUD_TOKEN=$KCLOUD_TOKEN
33
+ kcloud agents tasks add acme/nightly --description "Release $GITHUB_REF_NAME" --yes --json
34
+ ```
35
+
36
+ `kcloud <command> -h` describes any command. Exit codes: 0 for success, 1 for a refusal of the instance,
37
+ 64 for a mistake in the command, 130 for a cancelled prompt.
38
+
39
+ Administration of an instance, from the droplet to backups and the master key, belongs to a separate
40
+ command line, `kcloud-admin`, which ships with the platform rather than from npm.