slint-ui/slint · error · Error

unknown command: ${command}

Error message

unknown command: ${command}

What it means

Error "unknown command: ${command}" thrown in slint-ui/slint.

Source

Thrown at api/node/scripts/packaging.mts:253

            });
            break;
        }
        case "pack-dev-meta": {
            const [version, dest, ...targets] = args;
            await packDevMeta({
                version,
                dest,
                targets: targets.length ? targets : undefined,
            });
            break;
        }
        case "publish-all": {
            const [dir, registry, tag] = args;
            await publishAll({ dir, registry, tag: tag || undefined });
            break;
        }
        default:
            throw new Error(`unknown command: ${command}`);
    }
}

// Run as a CLI when executed directly (rather than imported).
if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) {
    main(process.argv.slice(2)).catch((error) => {
        console.error(error);
        process.exit(1);
    });
}

View on GitHub (pinned to 3fd8f2ec03)

Solutions

  1. Run the script with one of the supported commands listed in its usage output.
  2. Check the command spelling against the packaging script's command list.

When it happens

Trigger: Thrown at api/node/scripts/packaging.mts:253 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of slint-ui/slint@3fd8f2ec03 (2026-08-19). Data as JSON: /api/errors/a77c6cd5b3fff311. Report an issue: GitHub.