To start off this tutorial, we have to create a new project first.
Creating a project
Use setup
command with --email
and --password
argumentsaccessToken
argument, so they it will be remembered the next time you log in. These credentials are the same you use to log in to the applicationThe access token has to be generated. See how to generate an access token.
Code Block | ||||
---|---|---|---|---|
| ||||
CleverMaps$ setup --email tomas.schmidl@clevermaps.io --password YOUR_PASSWORD accessToken XbkadJ2ZcUd5_gRi5AjJoKwy3w6Jp5ctBacCCfhUbxQ Config and credentials saved successfully to /home/tomas/.cleverMaps TODO |
Then use login
command to log in to the Shell.
Info |
---|
Please note that if you created a CleverMaps account using social login (Facebook, Google) you will not be able to use the same credentials you use for these services. In this case, you will have to generate an access token. See how to generate an access token. |
Code Block | ||||
---|---|---|---|---|
| ||||
CleverMaps$ login TODO Found credentialsconfig file: /home/tomas/.cleverMaps/credentialsconfig Found * configsetting filehttps: /home/tomas/.cleverMaps/configsecure.clevermaps.io as default server * setting /home/tomas/metadata as default dump directory Successfully logged in as tomas.schmidl@clevermaps.io (using access token) tomas.schmidl@secure.clevermaps.io$ |
...
Code Block | ||||
---|---|---|---|---|
| ||||
tomas.schmidl@secure.clevermaps.io$ createProject --title "First project" --description "My first project in CleverMaps" TODO No organization has been set for a new project, creating a TRIAL project. Created project k5t8mf2a80tay2ng Project k5t8mf2a80tay2ng (First project) successfully opened Project title: First project Organization: CM Trial Opening dump... You don't have dump to open for this project. tomas.schmidl@secure.clevermaps.io/project:k5t8mf2a80tay2ng$ |
...
New project has been created and opened. It is uniquely identified by the generated project ID - k5t8mf2a80tay2ng
. The context has changed to an opened project - /project:k5t8mf2a80tay2ng$
.
...
To start editing the project, we have to make a dump of the project to your local machine. Project dump is an image of the project in a specific time. It is uniquely identified by dump ID - a time stamp of when the dump was created (2020-06-23_17-48-00
). Detailed . Detailed description can be found in the dump structure article.
...
Code Block | ||||
---|---|---|---|---|
| ||||
tomas.schmidl@secure.clevermaps.io/project:k5t8mf2a80tay2ng$ dumpProject TODO Creating dumpproject directory /home/tomas/metadata/k5t8mf2a80tay2ng/2020-06-23_17-48-00 Creating data dump directory /home/tomas/metadata/k5t8mf2a80tay2ng/2020-06-23_17-48-00/data Creating metadata dump directory /home/tomas/metadata/k5t8mf2a80tay2ng/2020-06-23_17-48-00/metadata Metadata dump started... Project metadata successfully dumped to /home/tomas/metadata/k5t8mf2a80tay2ng/2020-06-23_17-48-00/metadata SynchronousAsynchronous data dump started... Project DWH data successfully dumped to /home/tomas/metadata/k5t8mf2a80tay2ng/2020-06-23_17-48-00/data Dump 2020-06-23_17-48-00 opened and set as current tomas.schmidl@secure.clevermaps.io/project:k5t8mf2a80tay2ng/dump:2020-06-23_17-48-00$$ |
You can see that the dumpProject
command has created the dump directories.
Info | ||
---|---|---|
| ||
We recommend using a good text editor, like Notepad++ (Windows) or Atom (Windows, Linux, Mac) to manage your project projects dumps. It is handy to open the default dump directory, which you may have set during the installation of the Shell. You can then easily manage multiple dumps of multiple projects. |
...