Registry / devops / stallion-cli

stallion-cli

JSON →
library2.4.3jsnpmunverified

Stallion CLI is a unified command-line tool for deploying React Native bundles to Stallion servers. Current stable version is 2.4.3. Released actively on npm. It uses Commander.js for CLI parsing and provides commands for authentication, bundle upload, and configuration management. Key differentiator: purpose-built for Stallion deployment workflow, integrates with Stallion's console and API.

npm install stallion-cli
INSTALL
IMPORT
SIG · STALLION-CLI
S
stallion-cli
devopsjavascriptv2.4.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

stallion
import stallion from 'stallion-cli'
const stallion = require('stallion-cli');
ESM-only since v2.0. Use dynamic import for CommonJS.
CLI
import { CLI } from 'stallion-cli'
import CLI from 'stallion-cli'
Named export, not default export. Use named import.
run
import { run } from 'stallion-cli'
const { run } = require('stallion-cli');
ESM-only; require() will fail in Node <14 or without --experimental-modules.

Shows how to authenticate and upload a React Native bundle using Stallion CLI programmatically.

import stallion from 'stallion-cli'; async function deploy() { const apiKey = process.env.STALLION_API_KEY ?? ''; await stallion.login({ apiKey }); await stallion.uploadBundle({ platform: 'ios', bundlePath: './build/main.jsbundle', appVersion: '1.0.0', channel: 'production' }); } deploy().catch(console.error);
stallion-cli --version
Debug
Known issues
breakingSince v2.0, ESM-only: CommonJS require() no longer works.
fix
Use import() or switch to ESM. For CommonJS projects, use dynamic import: const stallion = await import('stallion-cli');
affects: >=2.0.0
deprecatedThe 'stallion init' command is deprecated in v2.4.0.
fix
Use 'stallion config set' instead.
affects: >=2.4.0
gotchaNode.js v14 required, v16 recommended. v12 and below not supported.
fix
Upgrade Node.js to v14 or higher.
affects: >=2.0.0
breakingAPI endpoint changed from /v1 to /v2 in v2.3.0. Old SDK versions will fail.
fix
Update stallion-cli to >=2.3.0. If you rely on the URL, update to 'https://api.stalliontech.io/v2'.
affects: >=2.3.0 <2.3.0
Errors
Common errors & fixes
Error: Cannot find module 'stallion-cli'
Package not installed or global install not in PATH.
fix
Run 'npm install -g stallion-cli' or install locally with 'npm install stallion-cli' and use npx.
SyntaxError: Unexpected token 'export'
Using require() in CommonJS on an ESM-only package.
fix
Use dynamic import or switch project to ESM: 'type': 'module' in package.json.
Error: Failed to authenticate. Invalid API key.
Missing or incorrect STALLION_API_KEY environment variable.
fix
Set STALLION_API_KEY to your valid Stallion API key. Obtain at https://console.stalliontech.io/settings/api-keys
Upgrade
Version history
2.4.3latest on npm
Audit
Dependencies
commanderrequiredCLI command parsing and argument handling
axiosrequiredHTTP requests to Stallion API for authentication and uploads
Agent activity
4 hits · last 30 days
node
4
Resources
stallion-cli — npm install stallion-cli · libregistry