Install the CLI
Start in an empty directory with Node 22.14 or later and npm. Set SIGNALCRANE_API_URL to your SignalCrane origin, download both packages and verify their SHA-256 checksums. Run the following commands from that directory.
curl --fail -O "$SIGNALCRANE_API_URL/downloads/signalcrane-sdk-1.0.0.tgz"
curl --fail -O "$SIGNALCRANE_API_URL/downloads/signalcrane-cli-1.0.0.tgz"
curl --fail -O "$SIGNALCRANE_API_URL/downloads/SHA256SUMS"
awk '/ signalcrane-(sdk|cli)-1[.]0[.]0[.]tgz$/' SHA256SUMS | sha256sum -c -
npm init -y
npm install ./signalcrane-sdk-1.0.0.tgz ./signalcrane-cli-1.0.0.tgzValidate locally
Open Target authorization, register an endpoint you operate, and complete its verification. Copy the Target ID into TARGET_ID. Initialize the project with this target and run the check against the CLI’s local fixture.
Target authorizationnpx --no-install signalcrane init --target-id "$TARGET_ID"
npx --no-install signalcrane testPreview the change
Provide the control origin as SIGNALCRANE_API_URL and inject a scoped SIGNALCRANE_TOKEN. Supply any environment-specific IDs required by your definition. To rehearse a rejection, substitute an unregistered target ID and preview. Restore the authorized ID and preview again. Supply --usd-per-thousand with your own rate to add a cost estimate.
npx --no-install signalcrane auth
npx --no-install signalcrane preview --out wave7.plan.jsonDeploy and revert
Review the preview, expected operations and volume. Apply the saved plan. The example changes the group name in signalcrane.json and previews the update into a second file. Deploy and revert that second plan to restore the first revision. Keep each plan, its receipt and the .signalcrane directory together.
npx --no-install signalcrane deploy --plan wave7.plan.json
node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from "node:fs";
const file = "signalcrane.json";
const project = JSON.parse(readFileSync(file, "utf8"));
project.resources.find(resource => resource.key === "core").spec.name = "Release checks";
writeFileSync(file, JSON.stringify(project, null, 2));
JS
npx --no-install signalcrane preview --out update.plan.json
npx --no-install signalcrane deploy --plan update.plan.json
npx --no-install signalcrane revert --plan update.plan.json