spd. These commands work from any folder inside
a project, and read the package name and version from its manifest.json.
Writing code:
spd new, spd watch, spd build and the rest are on Getting started.
Account
login
spurdoverse.app/cli with a code; press Allow there and the terminal gets a key. The
request lives 10 minutes. The key is stored in the Windows Credential Manager and doesn’t expire.
SPD_TOKEN overrides the stored key, for CI. Create one for it in the editor:
Branches & versions → How to release → CLI keys. An account has 10 keys at most, the ones
spd login made included: revoke old ones there.
The Allow page asks to confirm your email first if it isn’t confirmed. Without that, there’s
no key.
logout and whoami
spd logout revokes the stored key and removes it. spd whoami prints the account, the key’s id,
its scopes and your package scope (@yournick); it exits with code 1 when you’re not signed in.
Versions
publish
manifest.json; the release notes are --notes, or the section for this version in
CHANGELOG.md.
The first publish creates the market item as a draft and prints the link to its editor. The whole
walkthrough: Publishing a script.
version
manifest.json and package.json, as npm version does.
1.5.0-beta.2 → 1.5.0 with minor or patch.
rollback
promote
1.5.0 to beta first, not
1.5.0-beta.3.
yank
Libraries and forks
add
npm install plus a warning when a spurdo! library needs ffi or filesystem: its permissions
become your script’s, and your versions go to a moderator.
fork
displayName "<original> (моя версия)", version 1.0.0, and "forkOf" in the manifest naming the
original. It gets no automatic updates.
You can publish a fork on the market only if the original’s author allows it; otherwise
spd publish refuses with fork-not-allowed. Keep such a copy local.
upstream
spd upstream (or spd fork status) says whether the original has a new version,
diff shows its changes since the version your fork is based on, apply merges them into your
files: three-way, with conflict markers where you both changed the same lines.
Checks
doctor
spd publish fails before uploading.