Magento
  • Personalization for Magento
  • Installing
  • Disconnecting
  • Uninstalling
  • Getting Started
  • Configuring
  • Guides
    • Varnish & Full-Page Caches
    • Advanced User Guide
    • Managing Blocks
    • Overriding or Extending Functionalities
      • Overriding Product Data
        • Excluding Products
        • Customising Pricing
        • Resizing Images
      • Overriding Customer Data
      • Overriding Line Item Data
    • Bulk Product Updates
    • Console Commands
  • Features
    • Variations (Configurable Products)
    • Add to Cart
    • Indexer
    • Customer Group Pricing
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency (Exchange Rates)
    • Marketing permission and GDPR compatibility
    • Catalog Price Rules
  • Integrations
    • Using Yotpo
    • Using Klarna
  • FAQ
  • Developing & Contributing
  • Visit Nosto
  • Issues
  • Releases
Powered by GitBook
On this page
  • Getting tokens from the Nosto Admin Panel.
  • Getting Store View Scope Code From Magento's Backend
  • Using the Console Command to Reconnect Your Existing Nosto Account
  • Command Example:
  • Using the Console Command to Remove Your Nosto Account
  • Command Example:

Was this helpful?

  1. Guides

Console Commands

PreviousBulk Product UpdatesNextFeatures

Last updated 3 years ago

Was this helpful?

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

3.8.0

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

Log-in into 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.

stores___system___magento_admin_and_editing_reconnecting_nosto_account_via_cli_command_ _nosto_nosto-magento2_wiki
english___stores___system___magento_admin

You can use the help from the command to figure out all the necessary parameters:

image
image
image
Nosto Admin
cropper
image