Skip to content

CLI Commands

@crowdin/serverless-apps-cli is the command-line tool for serverless Crowdin apps: one binary scaffolds an app, runs it live inside Crowdin with hot reload, extracts and compiles translations, lints and formats your code, and publishes the result. It is a zero-config toolchain - React, Tailwind CSS, and Lingui i18n work out of the box, with Vite powering the dev server and the production build.

Requires Node.js ^22.19 || ^24 - 22.19 or newer within the 22.x line, or any 24.x.

Terminal window
npm install --global @crowdin/serverless-apps-cli

Or run it ad hoc with npx @crowdin/serverless-apps-cli <command>.

Run crowdin-serverless-apps <command> --help for all options and examples.

Terminal window
crowdin-serverless-apps create [name] [--template <t>] [--yes]

Create a new serverless app from a starter template, install its dependencies, build it, register it in Crowdin from the built app file, and link the folder to it (CROWDIN_APP_ID in .env). Both templates scaffold the same sample app (manifest.json, src/, public/, locales/) and differ in who owns the build:

  • projects-dashboard-cli - the CLI handles building for you: dev, build, and publish work out of the box with the zero-config toolchain. The default (used with --yes).
  • projects-dashboard-standalone - you control the build setup: the template ships its own Vite/Lingui configuration and build scripts; use the CLI for app management (login, link, preview, and publish --no-build after your own build).

An app is never registered without a build. create installs the dependencies and runs the template’s build script with the first package manager that runs on your machine, in this order: pnpm (the templates are written for it), bun, npm. When it is not pnpm, create says so: run the scripts the project’s README lists as pnpm <script> with npm run <script> or bun run <script>. create either finishes or leaves nothing behind: if the install, the build or the registration fails, it shows the error (with the package manager’s own last lines), removes the folder it made and registers nothing. Fix the problem and run the same command again. If Crowdin does not answer the registration, the app may have been registered anyway, so create keeps the folder and says how to check with list and link the folder with link. Cancelling create (Esc, or Ctrl+C) stops the install or the build, removes the folder and registers nothing.

Terminal window
crowdin-serverless-apps dev [--port <n>] [--yes] [--no-manifest-sync] [--skip-validation]

Start a local dev server with hot reload; while it runs, your app inside Crowdin loads straight from your machine. See how dev and publish work.

On start, dev compares manifest.json with the app in Crowdin and, when they differ, builds an app file and sends it. Then it offers to turn development mode on for this server. While it runs, it watches manifest.json: a saved change is validated like manifest validate does, sent to Crowdin with a fresh build, and reported in one line. An invalid manifest is not sent, and neither that nor a failed request stops the server. With --skip-validation dev prints the problems and sends it anyway, so Crowdin decides; a manifest.json that is not valid JSON is never sent. These builds go to a temporary folder, never to dist/.

In a non-interactive run nothing is sent without --yes: dev only checks the app in Crowdin and warns about what differs, or why it could not check. --no-manifest-sync turns all of this off: no manifest is sent, nothing is watched, and Crowdin keeps loading the app from wherever it did.

The server listens on port 8080 (PORT sets a different starting point). If that port is taken - typically by a dev server for another app - dev reports the port it moved to and points Crowdin at that one. --port <n> is exact: dev stops rather than moving, so a scripted port never changes under you.

Terminal window
crowdin-serverless-apps preview [--module <key>] [--project <id|identifier>]

Open the app’s page in Crowdin in the browser (does not start a server). Module types that have no page of their own (for example modal or chat) can’t be opened - the CLI explains why instead of opening the browser.

Project modules and editor-right-panel open inside a project, so they need one. --project accepts either the numeric id or the project identifier. In an interactive terminal the CLI lists the projects you can access and lets you pick one; without a TTY it falls back to the first project on that list, so a scripted preview still ends on a URL - the Opening <url> line names the project it used. Pass --project when a specific one matters, since the first project you can access is not necessarily one where the app has anything to show. If the account has no accessible projects, preview stops and says so.

Terminal window
crowdin-serverless-apps build [--no-extract] [--no-bundle]

Build the app and pack it into the app file dist/<app-slug>.crowdinapp - the manifest and the build in one file, the form in which publish uploads the app and in which you install it in another account. --no-bundle builds without packing the app file.

Terminal window
crowdin-serverless-apps extract

Scan the source for translatable text and update the locales/*.po catalogs. See translations.

Terminal window
crowdin-serverless-apps publish [--no-build] [--yes] [--no-manifest-sync] [--skip-validation]

Build the app, upload its app file - the manifest and the build together - and let Crowdin serve that version. If Crowdin is still loading the app from your machine, publish asks before turning development mode off; decline, and only the app file is replaced.

--no-build skips the build and packs what is already in dist/ with the current manifest.json. In a non-interactive run the switch out of development mode needs --yes. publish checks manifest.json before it builds anything, as manifest validate does, and stops on a problem. If a finding is wrong - the scope check reads your code and can misjudge a call - --skip-validation prints the problems and publishes anyway: Crowdin checks the manifest itself and turns down one it can’t accept. A manifest.json that is not valid JSON stops publish even then.

Terminal window
crowdin-serverless-apps lint

Check the app’s code for problems (Biome, no configuration needed).

Terminal window
crowdin-serverless-apps format

Auto-format the app’s code.

Terminal window
crowdin-serverless-apps list [--print] [--json]

List your serverless apps. Alias: ls.

Terminal window
crowdin-serverless-apps link [--app-id <id>]

Link the local project to an existing app.

Terminal window
crowdin-serverless-apps manifest validate

Check manifest.json.

manifest validate checks the file against the manifest schema and needs no login and no app link - it never contacts Crowdin. It exits with code 1 when the manifest is invalid or is not valid JSON, which makes it usable as a pre-commit or CI gate.

It also checks that scopes covers the Crowdin API calls in src/. The source is read through the TypeScript compiler (the CLI’s own copy), each call on a createCrowdinClient() resource is mapped to the @requiredScope of that method in the installed @crowdin/crowdin-api-client, and each createStorage() use to application.storage. A scope the manifest does not cover is a problem, reported with the calls that need it and the exact string to add; declared scopes that no call uses are notes. The check follows types, not names: a receiver typed any and a computed method name are reported as hints only, and files outside the tsconfig include are not scanned. It is skipped when the SDK is not installed or when @crowdin/crowdin-api-client is older than 1.59.2, the first release with the tags; a call to a method that release left untagged is a note, not a problem.

manifest push, manifest pull, and manifest status are gone: publish and dev send the manifest together with the build. For one release the three still run, print a one-line note, and exit with code 0, so existing scripts keep working.

Terminal window
crowdin-serverless-apps login [--file-storage] [--port <n>]

Sign in via the browser; tokens are stored in the OS keychain, or in an encrypted file with --file-storage. Your Crowdin Enterprise organization is detected automatically.

--port pins the browser-callback port to one of 26140-26144 (useful for SSH port forwarding); by default the first free one of those is used.

Terminal window
crowdin-serverless-apps logout

Log out and remove the stored token.