Français
alta new
Creates content from a skeleton; genres: chart, quest-pack, onboarding, cinematics, universe, mission, signin (alta new chart is alta chart new).
Les descriptions et les sorties sont en anglais, comme la CLI.
Usage
text
alta new <genre> <dir> [--id <id>] [--kind <kind>] [--branch <branch>] [--template <flow>] [--tool <id>] [--force]Arguments
| Nom | Description | |
|---|---|---|
genre | requis | What to create: chart, quest-pack, onboarding, cinematics, universe, mission, signin. |
dir | requis | The folder to write the files into (created if missing). |
Options
| Nom | Type | Défaut | Description |
|---|---|---|---|
--id | string | Défaut: the folder's name | The content's id: lower-case letters, digits and dashes, 2 to 32 characters, starting with a letter. |
--kind | string | Défaut: agent | chart: its kind, one of agent, team, module, skill, quest-pack, universe. |
--branch | string | Défaut: core | The branch a quest pack adds its quests to. |
--template | string | Défaut: link-code | signin: the sign-in template, one of link-code, device-code, email-link, secret, tool-browser. |
--tool | string | Défaut: the template's own | signin: the tool, one of claude, codex, gh, practice that offers the template. |
--force | flag | Overwrite files that already exist. |
Codes de sortie
| Nom | Description |
|---|---|
0 | ok |
1 | problèmes trouvés |
2 | mauvais usage |
3 | pas dans cette version |
Exemples
A quest pack, with a step that does it (inputs, run, check)
Terminal
sh
alta new quest-pack my-packSortie
text
created my-pack/quests.json (quest-pack, id my-pack)
next: edit the texts, then `alta lint my-pack`, then `alta dev my-pack`A universe, as a folder of data
Terminal
sh
alta new universe my-worldSortie
text
created my-world/universe.json, my-world/vocabulary.json, my-world/palette.json, my-world/copy/en.json, my-world/art.json, my-world/onboarding.json, my-world/copy/fr.json, my-world/cinematics.json (universe, id my-world)
next: edit the texts, then `alta lint my-world`, then `alta dev my-world`A sign-in step: a device code shown to the player
Terminal
sh
alta new signin my-login --template device-code --tool ghSortie
text
created my-login/quests.json (signin, id my-login)
next: edit the texts, then `alta lint my-login`, then `alta dev my-login`