Install the Nango CLI
Install the Nango CLI globally:./nango-integrations folder with some initial configuration and an example
sync script. The nango-integrations directory looks like this:
CLI Authentication
Add the following env vars. We recommend that you have a.env file in ./nango-integrations:
prod and dev secret keys from the Environment Settings tab (toggle between the prod and dev environment in the left nav bar).
For self-hosting, set the
NANGO_HOSTPORT env variable to http://localhost:3003 (for local development) or your instance’s URL.All CLI commands & command details
Check out all CLI commands by running:Interactive Mode
The Nango CLI includes an interactive mode that prompts you for missing arguments. For example, if you runnango create without specifying the function type, integration, or name, the CLI will prompt you for them.
This mode is enabled by default when you’re in an interactive terminal session.
Usage Examples
Interactive Usage: If you run a command without all the required arguments, the CLI will prompt you for them.Disabling Interactive Mode
You can disable interactive mode in two ways:- Using a flag: Pass the
--no-interactiveflag to any command. - In a CI environment: Interactive mode is automatically disabled when the
CIenvironment variable is set. This is the standard way to detect CI/CD environments.
Backwards Compatibility
Interactive mode is fully backward compatible. If you provide all the required arguments for a command, the CLI will not prompt you for anything and will behave exactly as it did before.Flags & environment variables
Global command flags:Dependency management
For Zero YAML projects, the CLI can keep required dev dependencies (for examplenango and related tooling) in sync and run package installation when needed.
--no-dependency-update
Use --no-dependency-update to disable automatic package.json updates and dependency installs:
- your CI pipeline should not modify files
- your monorepo manages dependencies at the workspace root
- you want full control over when
installruns
--no-dependency-update explicitly is still recommended to make intent clear and silence the warning.
Package manager support
Nango supports all major JavaScript package managers. The CLI automatically detects and uses your package manager for installs. Detection works from the current directory upward (monorepo-aware), in this order:package.jsonpackageManagerfield (Corepack standard)- lock files (
pnpm-lock.yaml,yarn.lock,bun.lockb/bun.lock) - fallback to
npm
npm, pnpm, yarn, and bun.