Skip to main content
Solved

Ampli CLI pull problem (React Native SDK)

  • October 19, 2022
  • 4 replies
  • 507 views

Forum|alt.badge.img
  • Helpful Hero
  • 8 replies

Hello! Our app is a react-native project and we already get some analitycs by amplitude about year. Now I want to improve amplitude usage for our project and I would like to use Ampli CLI for our app. 
 If I try to execute

ampli pull

I get the next warning

WARNING You have yet to create a source in your account. Log into https://data.amplitude.com/ to create one.

But in our app we have one source 
React native SDK with name ReactNative. Connected.

Please tell me, is it possible to use ampli cli for react native project or maybe something wrong?

Best answer by eddie.gaona

Hello @Gaka happy to help!

In order to use Ampli CLI to verify your instrumentation versus the tracking plan within Amplitude Data you will need to set up a source name along with the SDK that you are leveraging.

For example, in Amplitude Data head over to Sources on the left panel. Find “React Native” and click on it and then a pop-up window will appear. You will need to give it a custom name like the following:

 

You will then need to add the custom source name to the events that fall within this SDK as follows:

 

Once these steps have been completed you will be able to leverage `ampli pull`.

View original
Did this topic help you find an answer to your question?

4 replies

eddie.gaona
Team Member
Forum|alt.badge.img+9
  • Amplitude Support
  • 161 replies
  • Answer
  • October 20, 2022

Hello @Gaka happy to help!

In order to use Ampli CLI to verify your instrumentation versus the tracking plan within Amplitude Data you will need to set up a source name along with the SDK that you are leveraging.

For example, in Amplitude Data head over to Sources on the left panel. Find “React Native” and click on it and then a pop-up window will appear. You will need to give it a custom name like the following:

 

You will then need to add the custom source name to the events that fall within this SDK as follows:

 

Once these steps have been completed you will be able to leverage `ampli pull`.


Hi @eddie.gaona ,

I also have already created a react native source and I am not able to find my source in the add source section of create events.
And if I want to create a new source it throws this error.

 


Hello, I am experiencing the same error, “You have yet to create a source in your account.”

When running Ampli pull, yet I have a source configured and plenty of events coming from it. 

 

  1. The existing Browser SDK source does not have a custom name, nor can I create a new Browser SDK source with a custom name because I get the “Something went wrong, please contact support if this persists”
  2. I cannot assign a custom name to the source that is already created

 

So Ampli pull is just glitched? I don’t understand


Forum|alt.badge.img+1
  • Experienced
  • 13 replies
  • March 20, 2025

Sounds like an issue with your local setup or possibly a version mismatch. Have you tried running ampli pull -u to refresh your tracking plan? If that doesn't help, sometimes reinstalling dependencies (npm install or clearing cache) does the trick. Also, double-check if your Ampli CLI and React Native SDK versions match.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings