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. From 7.6.0
it is also possible to clear Nosto message queues with a console command. This might be helpful in debugging.
Since you need a different Nosto account for each store view, you need to get the store scope code. You can find in: Stores -> All stores
Click on your store view:
Copy the value from de code
field
Open the terminal and head to you Magento installation path directory
You can run:
bin/magento nosto:account:connect
and enter the interactive mode, where you will input the required tokens.
In order to use this command with non-interactive installation scripts, you can also pass all the parameters via the command line arguments.
This command is used to disconnect an existing account from your store.
Open the terminal and head to you Magento installation path directory
You can run:
bin/magento nosto:account:remove
and enter the interactive mode, where you will input the store view scope code.
In order to use this command with non-interactive installation scripts, you can also pass the parameter via the command line arguments.
Open the terminal in your Magento root directory and run
bin/magento nosto:clear:message-queue
This will clear all messages on both update and delete queues.
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: