@craftrpgs/cli 0.1.8 → 0.2.0-alpha.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.
Files changed (3) hide show
  1. package/README.md +15 -0
  2. package/dist/bin.js +9959 -6756
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -29,6 +29,7 @@ know how to work with the project the moment you open it.
29
29
  | Command | What it does |
30
30
  |---|---|
31
31
  | `craft login` / `logout` | Browser sign-in (credentials stored per server) |
32
+ | `craft env [production\|alpha]` | Show or pin the environment a folder uses (`--clear` unpins) |
32
33
  | `craft create <name>` | Create a new project and clone it (`--system <id\|name>` builds on a published system; `--blank` starts from scratch) |
33
34
  | `craft clone <idOrUrl>` | Download a project as a local workspace |
34
35
  | `craft projects` | List projects your account owns |
@@ -52,6 +53,20 @@ automatically.
52
53
 
53
54
  Run `craft help <command>` for details on any of them.
54
55
 
56
+ ## Alpha
57
+
58
+ The CLI talks to production by default. Alpha testers point a folder at
59
+ alpha (alpha.craftrpgs.com) instead:
60
+
61
+ ```sh
62
+ craft env alpha # pins this folder and everything under it
63
+ craft login # signs in on alpha
64
+ craft clone https://alpha.craftrpgs.com/projects/<id>
65
+ ```
66
+
67
+ A pasted alpha project URL clones from alpha in any folder. Run
68
+ `craft env --clear` in the pinned folder to go back to production.
69
+
55
70
  ## Visual novels
56
71
 
57
72
  A visual novel is a paged story readers click through: a backdrop, a text