@app-connect/cli
v0.1.4
Published
CLI for RingCentral App Connect
Readme
RingCentral App Connect CLI
A command-line interface for creating new RingCentral App Connect projects from templates.
Installation
Using npx (Recommended)
No installation required! Use npx to run the CLI directly:
npx @app-connect/cli init [project-name]Global Installation
Alternatively, you can install it globally:
npm install -g @app-connect/cliThen use it as:
appconnect init [project-name]Usage
Initialize a New Project
With npx (recommended):
npx @app-connect/cli init [project-name]With global installation:
appconnect init [project-name]Options:
project-name- Name of the project directory (optional, defaults tomy-app-connect-project)--force, -f- Force overwrite if directory exists--template, -t- Template to use (currently only supportsdefault)--no-install- Skip installing dependencies (installs by default)--no-env- Skip copying.env.testto.env(copies by default if present)--start, -s- Automatically run the dev server after init
Examples:
# Create a new project with default name
npx @app-connect/cli init
# Create a new project with custom name
npx @app-connect/cli init my-crm-connector
# Force overwrite existing directory
npx @app-connect/cli init my-crm-connector --force
# Auto-install deps and copy env (default behavior)
npx @app-connect/cli init my-crm-connector
# Do everything and start the dev server
npx @app-connect/cli init my-crm-connector -sUpgrade @app-connect/core in an existing project
Run inside your project directory:
With npx (recommended):
npx @app-connect/cli upgradeWith global installation:
appconnect upgradeOptions:
--dev, -D- Install as a devDependency
This will detect your package manager (npm, pnpm, yarn, bun) and upgrade @app-connect/core to the latest version.
Start the development server
Run inside your project directory:
With npx (recommended):
npx @app-connect/cli start [port]With global installation:
appconnect start [port]port is optional. If provided, it sets the PORT env var before running the project's dev script.
What the CLI Does
- Downloads Template: Downloads the latest template from the RingCentral App Connect repository
- Creates Project Structure: Sets up a new project directory with all necessary files
- Updates Configuration: Modifies
package.jsonwith your project name - Provides Next Steps: Shows you what to do next to get started
After Initialization
Once your project is created, follow these steps:
cd your-project-name
npm install
cp .env.test .env # Configure your environment
npm run dev # Start development serverSupport
For support and questions:
- Check the App Connect documentation
- Open a question on RingCentral Community App Connect group
