@ycadence/cli 0.1.0 → 0.2.1
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 +39 -14
- package/dist/bin.js +3642 -327
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# @ycadence/cli
|
|
2
2
|
|
|
3
|
-
Work with YCadence from the command line: list, create,
|
|
4
|
-
read states
|
|
3
|
+
Work with YCadence from the command line: list, create, update, close and move work
|
|
4
|
+
items, read and set up states, labels, cycles and views, triage intake, and run imports
|
|
5
|
+
from CSV, Jira, Linear or GitHub exports.
|
|
5
6
|
|
|
6
7
|
## Install
|
|
7
8
|
|
|
@@ -31,11 +32,24 @@ the name from before the rename.
|
|
|
31
32
|
|
|
32
33
|
## Configure
|
|
33
34
|
|
|
35
|
+
```sh
|
|
36
|
+
ycadence login --url https://ycadence.example.com --api-key-stdin < key.txt
|
|
37
|
+
ycadence config set project <projectId> # a default project for this profile
|
|
38
|
+
ycadence doctor # checks configuration and connectivity
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Profiles live in `~/.config/ycadence/config.json` (`$XDG_CONFIG_HOME` aware); switch with
|
|
42
|
+
`--profile <name>` or `ycadence config use <name>`. The API key is kept in the OS keychain
|
|
43
|
+
(macOS Keychain, or the Secret Service through `secret-tool`), else in a `credentials.json`
|
|
44
|
+
with mode 0600. For an instance behind Google IAP, `ycadence login --oauth-client-id …
|
|
45
|
+
--iap-audience …` signs in with Google and refreshes the identity token itself.
|
|
46
|
+
|
|
47
|
+
Environment variables still win, so CI needs nothing else:
|
|
48
|
+
|
|
34
49
|
```sh
|
|
35
50
|
export YCADENCE_URL=https://ycadence.example.com
|
|
36
51
|
export YCADENCE_API_KEY=yc_live_p_... # a project, organization or personal key
|
|
37
52
|
export YCADENCE_IDENTITY_TOKEN=... # only behind Google IAP; lasts about an hour
|
|
38
|
-
ycadence doctor # checks configuration and connectivity
|
|
39
53
|
```
|
|
40
54
|
|
|
41
55
|
When a `YCADENCE_*` variable is unset, the CLI reads the older `DEVPULSE_*` name
|
|
@@ -43,20 +57,31 @@ instead, and `doctor` tells you which one it used.
|
|
|
43
57
|
|
|
44
58
|
## Commands
|
|
45
59
|
|
|
60
|
+
`ycadence <resource> <verb> [arguments] [flags]`. The full, generated reference is
|
|
61
|
+
[docs/cli/reference.md](https://github.com/YarlisAISolutions/dev-pulse/blob/main/docs/cli/reference.md).
|
|
62
|
+
|
|
46
63
|
```
|
|
47
|
-
ycadence
|
|
48
|
-
ycadence
|
|
49
|
-
ycadence
|
|
50
|
-
ycadence
|
|
51
|
-
ycadence
|
|
52
|
-
ycadence
|
|
53
|
-
ycadence
|
|
54
|
-
ycadence
|
|
55
|
-
ycadence
|
|
56
|
-
ycadence import status <runId>
|
|
57
|
-
ycadence import list <projectId>
|
|
64
|
+
ycadence work list|get|create|update|close|transition|delete
|
|
65
|
+
ycadence states list ycadence labels list|create
|
|
66
|
+
ycadence cycles list|show|create|add
|
|
67
|
+
ycadence views list|create ycadence types list
|
|
68
|
+
ycadence intake list|submit|triage
|
|
69
|
+
ycadence import preview|run|status|list
|
|
70
|
+
ycadence login ycadence auth status|logout|token
|
|
71
|
+
ycadence config list|get|set|unset|profiles|use|path
|
|
72
|
+
ycadence doctor ycadence completion bash|zsh|fish
|
|
58
73
|
```
|
|
59
74
|
|
|
75
|
+
Every command takes `--format json` (a stable `{ ok, data, nextCursor, requestId }`
|
|
76
|
+
envelope; errors go to stderr as `{ ok: false, error: { code, message, status, … } }`),
|
|
77
|
+
`--fields`, `--quiet`, `--verbose`, `--dry-run` for writes, `--idempotency-key`, `--retry`,
|
|
78
|
+
`--limit`, `--cursor` and `--all`. Exit codes: 0 ok, 1 failure, 2 usage, 3 not found,
|
|
79
|
+
4 permission, 5 conflict, 6 validation, 75 temporary (retry), 78 configuration.
|
|
80
|
+
|
|
81
|
+
The original commands still work, with a deprecation notice: `work-item list|create|show|close`,
|
|
82
|
+
`states <projectId>`, `cycles <projectId>`, and `import preview|run|list <projectId>`.
|
|
83
|
+
For a short name, `alias yc=ycadence`.
|
|
84
|
+
|
|
60
85
|
Requires Node 18 or later. The package is self-contained and installs no other packages.
|
|
61
86
|
|
|
62
87
|
## License
|