Repository
Current version released
3 years ago
Dependencies
ctcli
a CLI to perform commands to a commercetools project
how to run:
deno run -A https://deno.land/x/ctcli/ct.ts -i this runs the command for you.
or install it as a command line function:
deno install -A https://deno.land/x/ctcli/ct.ts
this allows you to run:
ct -irun the interactive clict --helpget some help, notice each command has it’s own related help
Prerequisites
- have the deno runtime installed
- have terraform installed
- have a .env file containing the details of your commeretools project
commands
clientShows the configuration of the API clientprojectInformation arround the configuration of the projectlistLists the configuration of the projectcleanDeletes all configuration in the project, be carefull, it removes everything!
productGets products from the projectlistLists all products in the projectimportImports a selection of products into the project. For now a rubber duck with 7 variantscleanDeletes all products from the projectpublishPublish a modified on unpublished product
customerWork with the customer entitylistlist all customers in the projectimport <region> <count>import a number of random customers into the project.
configureconfigure your project with the right settingsinit <region>Initialise the configuration with countries, languages, zones, channels, tax-rates, shipping methods, channels and stores. Allowed regions are: EMEA, APAC or USplanthis is just an alias for the terraform plan commandapplythis is just an alias for the terraform apply command, be carefull, this will overwrite all in your projectcleanthis will remove all cached terraform information, so gives you a clean slate to start over again. Be carefull, you will loose state with terraform aswell!
globalsSet a number of global parameters to make working with languages, countries and stores a bit easierhistory:
- 23-03-2023 first release