Aller au contenu
En Markdown

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 ​

NomDescription
genrerequisWhat to create: chart, quest-pack, onboarding, cinematics, universe, mission, signin.
dirrequisThe folder to write the files into (created if missing).

Options ​

NomTypeDéfautDescription
--idstringDéfaut: the folder's nameThe content's id: lower-case letters, digits and dashes, 2 to 32 characters, starting with a letter.
--kindstringDéfaut: agentchart: its kind, one of agent, team, module, skill, quest-pack, universe.
--branchstringDéfaut: coreThe branch a quest pack adds its quests to.
--templatestringDéfaut: link-codesignin: the sign-in template, one of link-code, device-code, email-link, secret, tool-browser.
--toolstringDéfaut: the template's ownsignin: the tool, one of claude, codex, gh, practice that offers the template.
--forceflagOverwrite files that already exist.

Codes de sortie ​

NomDescription
0ok
1problèmes trouvés
2mauvais usage
3pas dans cette version

Exemples ​

A quest pack, with a step that does it (inputs, run, check)

Terminal
sh
alta new quest-pack my-pack
Sortie
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-world
Sortie
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 gh
Sortie
text
created my-login/quests.json (signin, id my-login)
next: edit the texts, then `alta lint my-login`, then `alta dev my-login`

Voir aussi ​

Le standard, le SDK et la CLI sont sous Apache-2.0 ; Alta System OS et Alta World sous FSL-1.1-ALv2.