What is Scope?
Before accessing an answerSpace via the BMP CLI, each answerSpace needs to have a reference to its location within the BMP and the file location on your computer.
...
At this stage an authorisation token is not required until you attempt to login, this process merely creates the locational reference (Scope).
1. Open your terminal or command prompt window.
2. Change directory to point at your local copy. If this is a new project or you are pulling down from the BMP for the first time ,you may need to create a directory
Create a new directory first. (a.k.a. CWDeg. myanswerSpace)
Code Block | ||||
---|---|---|---|---|
| ||||
cd myuser/myprojects/CWDmyanswerSpace |
3. Set the project scope to the online URL the URL for your answerSpace.
Code Block | ||||
---|---|---|---|---|
| ||||
blinkm bmp scope https://exampleblinkm.comco/projectmyanswerSpace |
This saves this information in a `.blinkmrc.json` file in the
...
myanswerSpace folder, so you can version it with your project files if you like.
...
You may have to repeat this step later if you work on a new project, or if you chose not to version the `.blinkmrc.json` file
4. You can check the scope at any time by typing:
Code Block | ||||
---|---|---|---|---|
| ||||
blinkm bmp scope | ||||
This will return the current scope for that directory / project.