Skip to updates
← All updates

Integrate the Tenjin SDK from your terminal with the Tenjin CLI

The Tenjin CLI detects your project, sets up its Tenjin apps and SDK keys, checks the integration, and confirms that Tenjin processed a real install.

The Tenjin CLI handles the parts of an SDK integration that happen on your machine. It reads your project, creates the Tenjin app for each build, fetches and checks each SDK key, and explains why an integration would send nothing. It ends when Tenjin has processed an install from a real launch.

Install it with Homebrew on macOS or Linux, then run tenjin setup in your app's project:

brew install tenjin/tap/tenjin
cd path/to/your/app
tenjin setup

Windows users install it with PowerShell. The README lists every install method.

Set up an app in seven steps

The output of tenjin project detect for a Flutter app: framework Flutter, the Tenjin SDK tenjin_plugin 1.5.0, and the Android and iOS bundle IDs with the file each was read from.

tenjin setup walks you from sign-in to a processed install. It reads your project and suggests the Tenjin features the code shows a reason for, such as purchases, ad revenue, or deep links. It signs you in through the browser. It finds or creates the Tenjin app for each build and checks each SDK key against Tenjin, so a wrong key or the other platform's key is caught before you build. It then lists what the integration still needs, checks the project again after each change, and asks you to launch a debug build.

The CLI supports native Android, native iOS, Flutter, React Native, Capacitor, and Unity projects.

Find out why an integration sends nothing

The output of tenjin doctor for a Flutter app. It reports that TenjinSDK.instance.connect() is never called, with the fix, and lists the Android and iOS checks that pass.

tenjin doctor checks the integration on disk: the SDK version, the initialize and connect calls, Android permissions and ProGuard rules, and the iOS tracking and SKAdNetwork settings. Each problem comes with a fix that names the file, the line, and the SDK version.

tenjin doctor --device also reads the log of a connected Android device, an iPhone, or an iOS simulator. It shows what the SDK sent, what Tenjin answered, and whether Tenjin processed the install.

Hand the code changes to your coding agent

The CLI never writes your integration code. You write it, or your own coding agent does. When Claude Code or Codex is installed, setup offers to start it in your project with the open problems as its task, and then runs the checks itself. The agent works under the strictest limits each tool allows, and it never sees an SDK key. It writes a placeholder, and setup fills in the key afterwards.

Run tenjin agent install to teach Claude Code, Codex, Cursor, Copilot, or Gemini CLI to use the CLI on their own.

Script it

Every command except setup accepts --json and never prompts when no one is at the terminal. tenjin apps ensure finds or creates an app and is safe to repeat. tenjin apps keys list shows an app's SDK keys by their last four characters. The CLI never prints a whole SDK key or a credential.

Limits

  • Unreal projects are detected, but doctor does not check them and setup cannot verify their launch.
  • Verifying a launch needs adb for Android or Xcode for iOS. Tenjin accepts installs from simulators and emulators but leaves them out of attribution, so only a physical device confirms a processed install.
  • Only Claude Code and Codex can take over the code changes during setup.
  • The macOS binaries are not notarized yet. Homebrew and the install script handle this for you. If you download an archive in a browser, run xattr -d com.apple.quarantine on the binary before you open it.
  • The CLI sends Tenjin one anonymous usage event per command, with no path, bundle ID, key, or code. Run tenjin telemetry off to stop it.
Install the Tenjin CLI