Console Commands

It is possible to use a console command to reconnect or remove the account. This process can be handy when your deployments are automated.

Getting tokens from the Nosto Admin Panel.

Getting Store View Scope Code From Magento's Backend

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

Using the Console Command to Reconnect Your Existing Nosto Account

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.

Command Example:

php -f app/code/community/Nosto/Tagging/shell/reconnect.php -- \
--account-id NOSTO_ACCOUNT_NAME \
--products_token PRODUCTS_TOKEN \
--sso_token SSO_TOKEN \
--settings_token SETTINGS_TOKEN \
--rates_token EXCHANGE_RATES_TOKEN \
--scope-code STORE_VIEW_SCOPE_CODE \
--override

Using the Console Command to Remove Your Nosto Account

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.

Command Example:

php -f app/code/community/Nosto/Tagging/shell/remove.php -- \                                  
--scope-code STORE_VIEW_SCOPE_CODE

Last updated