Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI and Cron #104

Open
eBusinessAtlantique opened this issue Aug 31, 2022 · 5 comments
Open

CLI and Cron #104

eBusinessAtlantique opened this issue Aug 31, 2022 · 5 comments

Comments

@eBusinessAtlantique
Copy link

Do someone know how to use Magmi CLI ?
And use Cron for planned imports ?
Thanks

@cbtrident
Copy link

what you need to know about the cli stuff
i can help alittle as i do use

@eBusinessAtlantique
Copy link
Author

what you need to know about the cli stuff i can help alittle as i do use

Thank you for the proposal.
I need to launch a profile by cron, What is the command line to launch ?
Thanks

@cbtrident
Copy link

cbtrident commented Sep 5, 2022

mine is like this
23 * * * * /var/www/public_html/magmi/cli/magmi.cli.php -profile="zfs-updater" -mode="create"
30 * * * * /var/www/public_html/bin/magento indexer:reindex
31 * * * * /var/www/public_html/bin/magento cache:clean

just remember to chaneg teh name of the profile to what you have got or created

@eBusinessAtlantique
Copy link
Author

eBusinessAtlantique commented Sep 6, 2022

Thanks a lot.
In my case I don't need to reindex because it is done by the settings of the profile.
I also found that in the module code to set up correctly the modes :
<span>using mode:</span> <select name="mode" id="mode"> <option value="update">Update existing items only,skip new ones</option> <option value="create">create new items &amp; update existing ones</option> <option value="xcreate">create new items only, skip existing ones</option></select>

@cbtrident
Copy link

please you sort yes i did that as it was not updating on my old setup
right now am working on a new site so just got it working with php 8.1 now i need to see if i can sort the stock to work with latest magento

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants