- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Setting up local - can you run hs init for sandbox and live plus examples of navigating to folders
Jul 16, 2020 6:20 AM - edited Jul 16, 2020 6:31 AM
Hello
I am in the process of setting up local development
I have successfully installed command line interface
I am at the point of running a hs init command for the first time - can u run the hs init repeatly as I have a sandbox account and live account. Does the associated yaml file therefore hold two entries within it
Plus in terms of hs line command say with hs fetch where u assign a src and destination folderdo have actual examples of what sort paths you need create for example do you need to use
For example
When sandbox is the name I create in the hs init process not the name of the hs account
based on the following syntax
hs fetch --portal=<name> <src> <dest>
Us what is shown below is the correct syntax if i want to copy a specific folder from my sandbox design manager (where custom lays at the root of the design manager structure)
hs fetch --portal=sandbox custom/foldername1/foldername2 C:\Users\myname\Documents\hubspot_local\custom\foldername1\foldername2
Alternatively in respect to local file how do set up current working directory do u have to navigate to the folder in command prompt then run the hs command or in the example given does this depend on this being set up by the tool your using - in the example given your using Visual Studio IDE and your opening the local folder from within it.
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content