Cannot configure deploy path with CLI

I’m trying to deploy my react app following this

However, this is what I’m getting from the CLI

This folder isn’t linked to a site yet
? What would you like to do? + Create & configure a new site
? Team: team
Choose a unique site name (e.g. .netlify.com) or leave it blank for a random name. You can update the site name later.
? Site name (optional): undefined

Site Created

It doesn’t event give me an option to set the deploy path so it always uploads the wrong file. What can I do in this case?

Hi, @tpszhao, and welcome to the Netlify community site. :+1:

Is the local repo now linked to a Netlify site? Meaning, does netlify status show a link to the site at Netlify?

If so, you can set the directory to deploy in the CLI command itself. For example, if the directory to publish is “public” the command might look like this:

netlify deploy --prod --dir=public

​Please let us know if there are other questions about this.