Console Commands
Last updated
Last updated
It is possible to use a console command to reconnect or remove the account. This process can be handy when your deployments are automated.
Since you need a different Nosto account for each store view, you need to get the store scope code. You can find in: System -> Manage stores
You can find the store code under the store view link. If for any reason Magento do not show this information, you can also click in the storeview and lookup in the code
field
The script file should be available in the %nosto_installation_root%/shell/reconnect.php
.
If you have installed the extension through modman, the installation root directory should be under %magento_root%/.modman/nosto-magento
.
If you have installed via Magento Connect or via package upload, the extension should be in the app/code/community/Nosto/Tagging
directory.
In order to use this command with non-interactive installation scripts, you should pass all the parameters via command line arguments.
This command is used to disconnect an existing account from your store.
The script file should be available in the %nosto_installation_root%/shell/remove.php
.
If you have installed the extension through modman, the installation root directory should be under %magento_root%/.modman/nosto-magento
.
If you have installed via Magento Connect or via package upload, the extension should be in the app/code/community/Nosto/Tagging
directory.
In order to use this command with non-interactive installation scripts, you should pass all the parameters via command line arguments.
Log-in into Nosto Admin with your already existing account, select the store you want to reconnect and head to Settings -> Authentication Tokens
.
To obtain the tokens, just hit the decrypt button.
You can use the help from the command to figure out all the necessary parameters: