{"id":14580,"library":"fleetbo-cockpit-cli","title":"Fleetbo CLI","description":"Fleetbo CLI (version 1.0.250) is the official command-line interface for the Fleetbo platform, engineered to streamline the development and deployment of native mobile applications built with React. This tool is actively maintained, with new releases likely synchronized with updates to the broader Fleetbo platform, though a specific public release cadence is not explicitly defined. It distinguishes itself by offering a suite of specialized commands tailored for the Fleetbo ecosystem's mobile development workflows, encompassing initial project setup, automated page scaffolding, and platform-specific build processes for both Android and iOS. A key differentiator is its 'AI Architect Mode' (Alex), indicating integration with AI-powered development assistance. The CLI functions as a comprehensive project scaffold, code generator, and build orchestrator, aiming to simplify the intricacies of React Native development within the Fleetbo framework.","status":"active","version":"1.0.250","language":"javascript","source_language":"en","source_url":"https://github.com/FleetFleetbo/fleetbo-cockpit-cli","tags":["javascript","fleetbo","JavaScript","mobile","cli","android","ios"],"install":[{"cmd":"npm install fleetbo-cockpit-cli","lang":"bash","label":"npm"},{"cmd":"yarn add fleetbo-cockpit-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add fleetbo-cockpit-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[],"quickstart":{"code":"npx fleetbo-cli page Dashboard\n# This command generates a new React component file named 'Dashboard'\n# within your Fleetbo project's page directory, ready for customization.\n# For example, it might create src/pages/Dashboard/index.js\n# and an associated styles or test file. Ensure your .env is configured.\n\n# Alternatively, if installed as a dev dependency:\n# npm install --save-dev fleetbo-cockpit-cli\n# npm run fleetbo page Settings --prefix admin\n# This would generate a page component under an 'admin' subdirectory.","lang":"javascript","description":"Demonstrates generating a new page component within a Fleetbo project using the CLI."},"warnings":[{"fix":"Upgrade your Node.js installation to version 16.0.0 or higher using nvm (Node Version Manager) or by downloading the latest LTS from nodejs.org.","message":"Node.js version requirements are strict. Running the CLI with an unsupported Node.js version (below 16.0.0) may lead to unexpected errors or silent failures.","severity":"breaking","affected_versions":"<16.0.0"},{"fix":"Ensure your project's `.env` file contains all necessary configuration keys as specified in the Fleetbo documentation, with correct values for your project.","message":"The CLI requires a valid Fleetbo project with a properly configured `.env` file at the project root. Missing or incorrect environment variables (e.g., REACT_APP_ENTERPRISE_ID, REACT_KEY_APP, REACT_APP_TESTER_EMAIL) will prevent core functionalities from working.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Navigate to the root directory of your Fleetbo project before executing any `fleetbo-cli` commands that operate on project files.","message":"Commands such as `page` or `android` must be executed within the root directory of an initialized Fleetbo project. Running them outside a recognized project context will result in an error indicating the absence of a valid project.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-19T00:00:00.000Z","next_check":"2026-07-18T00:00:00.000Z","problems":[{"fix":"Update Node.js to version 16.0.0 or higher. For example, `nvm install 16 && nvm use 16` or `nvm install --lts`.","cause":"The installed Node.js version on your system does not meet the minimum requirement specified by the CLI.","error":"Error: Node.js version X.Y.Z is not supported. Please use >=16.0.0."},{"fix":"Verify that `REACT_APP_ENTERPRISE_ID=your_project_id` is correctly set in your project's `.env` file.","cause":"The CLI could not find a critical environment variable in the project's `.env` file, which is necessary for project identification.","error":"Error: Missing required environment variable REACT_APP_ENTERPRISE_ID. Please check your .env file."},{"fix":"Change your current working directory to the root of your Fleetbo project before running the command.","cause":"The CLI command was executed in a directory that is not recognized as a valid Fleetbo project root.","error":"Error: Command 'page' must be run inside a Fleetbo project."}],"ecosystem":"npm"}