Download your project with the CLI
You’ll need a computer with Node.js 20 or later and a terminal.1
Install the CLI
2
Sign in
Sign in with your Newly account:Or use
newly login --google or newly login --github. With --email, Newly sends you a code to type into the terminal.3
Find your project ID
Open the project in the web app. The ID is the last part of the address: app.newly.app/projects/
<project-id>.4
Pull the code
Create an empty folder, open it in your terminal, and run:The CLI downloads the project’s app and backend code into that folder.
Which branch you get
By default,newly pull downloads the dev branch, which is where your chats work. If the project has no dev branch, it downloads main. See Where your code lives for how the two branches differ.
Options
Very large projects may be too big to download this way. If
newly pull refuses a project for its size, contact support.
Other useful commands
newly whoamishows which account you’re signed in with.newly logoutsigns you out.
What you can and can’t do with the code
- You can open the code in your own editor, read it and keep a backup.
- You can’t send app code from your computer back into a Newly project. To change the app in Newly, ask the agent in a chat.
GitHub
Newly v2 projects can’t connect to GitHub, and there’s no automatic sync to a GitHub repository. To put your code on GitHub, download it withnewly pull and push it to a repository yourself. Remember that later changes made in Newly won’t reach GitHub unless you pull and push again.
The “Github to Mobile App” starter
The Github to Mobile App starter on the Home screen doesn’t import a repository. To base a new app on an existing website’s look, paste the public link to that website into the prompt box. The agent copies its style into a mobile app.Related pages
Where your code lives
Saved versions, branches and Promote to main.
Production and secrets
Deploy your backend and set secrets with the CLI.