nango-integrations folder set up.
Install the Nango CLI
Install the Nango CLI globally:nango help to get an overview of all CLI functions or take a look at the CLI reference.
Create your nango-integrations folder
All your integrations live in a folder called nango-integrations. Whether located in your main codebase or a dedicated repository, this folder should be version-controlled.
To initialize your integrations folder (e.g., at the root of your repository), run:
You can also ask Nango to seed your For more details, read our guide to leveraging AI agents
nango-integrations folder with instructions for AI agents:./nango-integrations folder with some initial configuration and an example sync script. The nango-integrations directory looks like this:
Authenticate the CLI
In an.env file in ./nango-integrations, add the following environment variables:
Production and Development environment in the left nav bar).
You can rename environments in the Nango UI under Environment Settings.The CLI reads secret keys from your If you rename the environment, update the variable name to match.
.env using this pattern: NANGO_SECRET_KEY_<ENV_NAME>.Example: if the environment is named staging-product_1, add:Next steps
Take a look at the examplegithub-issues-example sync.
You can also find more examples in our reference implementations repo on GitHub.
When you are ready, remove the example integration and create your own function: