{"id":19622153,"url":"https://github.com/commercetools/sphere-stock-import","last_synced_at":"2025-08-22T06:09:47.848Z","repository":{"id":12233079,"uuid":"14843802","full_name":"commercetools/sphere-stock-import","owner":"commercetools","description":"Import your stock information into SPHERE.IO's inventory from CSV or XML, with SFTP support!","archived":false,"fork":false,"pushed_at":"2024-11-17T12:13:30.000Z","size":980,"stargazers_count":1,"open_issues_count":23,"forks_count":5,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-08-18T01:37:10.472Z","etag":null,"topics":["audit-import-export"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"codefellows-portland-javascript-401d4/greeting-app","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commercetools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-12-01T18:27:34.000Z","updated_at":"2024-11-17T12:13:34.000Z","dependencies_parsed_at":"2024-11-11T11:32:17.576Z","dependency_job_id":"fabe3c2e-14a6-4654-8461-7e3a85da1711","html_url":"https://github.com/commercetools/sphere-stock-import","commit_stats":null,"previous_names":["hajoeichler/sphere-stock-xml-import","sphereio/sphere-stock-import"],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/commercetools/sphere-stock-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fsphere-stock-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fsphere-stock-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fsphere-stock-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fsphere-stock-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercetools","download_url":"https://codeload.github.com/commercetools/sphere-stock-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fsphere-stock-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271594377,"owners_count":24786707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit-import-export"],"created_at":"2024-11-11T11:26:14.650Z","updated_at":"2025-08-22T06:09:47.806Z","avatar_url":"https://github.com/commercetools.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv style=\"background-color: yellow; color: black; padding: 10px; text-align: center; font-weight: bold;\"\u003e\n  \u003ch2\u003e🚨 Non-maintainable 🚨\u003c/h2\u003e\n  \u003cp\u003eStarting January 1, 2025, we will no longer provide maintenance or updates for the CLI ImpEx tools. After this date, this tool will no longer receive bug fixes, security patches, or new features.\u003c/p\u003e\n\u003c/div\u003e\n\n\n\u003cimg src=\"https://impex.europe-west1.gcp.commercetools.com/static/images/ct-logo.svg\" alt=\"commercetools logo\" width=\"200\"\u003e\n\n# Stock import\n\n[![NPM](https://nodei.co/npm/sphere-stock-import.png?downloads=true)](https://www.npmjs.org/package/sphere-stock-import)\n\n[![Build Status](https://secure.travis-ci.org/sphereio/sphere-stock-import.png?branch=master)](http://travis-ci.org/sphereio/sphere-stock-import) [![NPM version](https://badge.fury.io/js/sphere-stock-import.png)](http://badge.fury.io/js/sphere-stock-import) [![Coverage Status](https://coveralls.io/repos/sphereio/sphere-stock-import/badge.png)](https://coveralls.io/r/sphereio/sphere-stock-import) [![Dependency Status](https://david-dm.org/sphereio/sphere-stock-import.png?theme=shields.io)](https://david-dm.org/sphereio/sphere-stock-import) [![devDependency Status](https://david-dm.org/sphereio/sphere-stock-import/dev-status.png?theme=shields.io)](https://david-dm.org/sphereio/sphere-stock-import#info=devDependencies)\n\nThis module allows to import stock information from CSV and XML files, with SFTP support.\n\n\u003e Make sure to check out the new [`sphere-node-cli`](https://github.com/sphereio/sphere-node-cli) for performant imports using JSON.\n\n## Getting started\n\n```bash\n$ npm install -g sphere-stock-import\n\n# output help screen\n$ stock-import\n```\n\n### SFTP\nBy default you need to specify the path to a local file in order to read the import information, via the `--file` option.\n\nWhen using SFTP, you should not use the `--file` option, instead you need to provide at least the required `--sftp*` options:\n- `--sftpCredentials` (or `--sftpHost`, `--sftpUsername`, `--sftpPassword`)\n- `--sftpSource`\n- `--sftpTarget`\n\n\n### CSV Format\n\nA simple example:\n```\nsku,quantityOnStock,restockableInDays,supplyChannel,expectedDelivery\nfoo,9,3,channel-key,2016-10-27T14:36:04.487Z\nbar,-1,3,channel-key,2016-10-27T14:36:04.487Z\nSKU-123,42,3,other-channel,2016-10-27T14:36:04.487Z\n```\n\n### Custom fields\n```\nsku,quantityOnStock,customType,customField.foo,customField.bar\n123,77,my-type,12,nac\nabc,-3,my-type,5,ho\n```\nPlease note: We do not support the localized set type.\n\n### XML Format\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003croot\u003e\n  \u003crow\u003e\n    \u003ccode\u003efoo\u003c/code\u003e\n    \u003cquantityOnStock\u003e7\u003c/quantityOnStock\u003e\n  \u003c/row\u003e\n  \u003crow\u003e\n    \u003ccode\u003ebar\u003c/code\u003e\n    \u003cquantityOnStock\u003e1\u003c/quantityOnStock\u003e\n  \u003c/row\u003e\n\u003c/root\u003e\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\nMore info [here](CONTRIBUTING.md)\n\n## Releasing\nReleasing a new version is completely automated using the Grunt task `grunt release`.\n\n```javascript\ngrunt release // patch release\ngrunt release:minor // minor release\ngrunt release:major // major release\n```\n\n## License\nCopyright (c) 2014 SPHERE.IO\nLicensed under the [MIT license](LICENSE-MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fsphere-stock-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercetools%2Fsphere-stock-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fsphere-stock-import/lists"}