DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > NativeScript CLI to Telerik Platform- There and Back Again

NativeScript CLI to Telerik Platform- There and Back Again

Learn how to take a NativeScript project created with the NativeScript CLI and migrate it to Telerik Platform to take advantage of cloud builds and app store deployment.

Rob Lauer user avatar by
Rob Lauer
·
Apr. 22, 17 · Mobile Zone · Tutorial
Like (0)
Save
Tweet
4.53K Views

Join the DZone community and get the full member experience.

Join For Free

far and away the most common place for people to start developing nativescript apps is with the nativescript cli. it just makes sense—nativescript is completely free, open source, and provides everything you need out of the box to create truly native cross-platform apps with javascript.

however, we regularly hear from many of these same people that they want to take a project started with the nativescript cli and move it to telerik appbuilder (part of telerik platform ). why? well, with appbuilder you get access to:

  • cloud builds (no need for a mac and no need to manage sdks).
  • app store deployment.
  • icon and splash screen creation.
  • plugins management.
  • configuration/settings management.

...the list goes on and on. so clearly there is value in moving a project from the nativescript cli to appbuilder, but how do you do it? that's what this guide is all about.

migrating project from nativescript cli

if you have an existing nativescript project created with the nativescript cli, let's go through the steps to move this project to appbuilder.

note that these instructions work equally well on mac and windows!

locate your nativescript project in your file system and compress/zip the app directory:

compress app directory

next, log into your telerik platform account . create a brand new nativescript app by choosing advanced > nativescript > blank template:

telerik platform new app

once your project is created in appbuilder, use the code menu option to navigate to the code editor.

you'll now need to delete the app directory and the package.json file in the project navigator pane:

telerik platform delete files

next, right click on the project name and choose add > from archive . choose the archive that you created from your existing nativescript app directory:

telerik platform add archive

finally, right click again on the project name and choose add > existing files . choose the package.json file from the root directory of your existing nativescript project:

telerik platform add existing files

and you are done!

from here you can build in the cloud for ios and android, test the app with the nativescript developer app (available for ios and android ), and even deploy your app to both app stores!

telerik platform app store

migrating project from appbuilder

if you have an existing telerik appbuilder project, you can also export it and continue development with the nativescript cli!

it's incredibly easy to take your appbuilder project and open it up with the nativescript cli. simply right click on your project and choose export :

telerik platform export project

unzip the downloaded archive, open up a terminal window, navigate to the project directory, and run:

tns platform add ios|android

...and finally:

tns run ios|android

...to see your app running in a simulator/emulator.

alternatively, you can use appbuilder's built-in github integration to maintain one repository that can be edited via appbuilder or your local file system!

you've seen how incredibly easy it can be to move back and forth between the nativescript cli and telerik platform. if you haven't already, set up your free 30 day trial of telerik platform today!

NativeScript Command-line interface app File system

Published at DZone with permission of Rob Lauer, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • To Shift Right, You Need Observability
  • Biometric Authentication: Best Practices
  • API Security Tools: What To Look For
  • Chopping the Monolith: The Demo

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo