Note: The contentstack-express command-line utility will soon be deprecated. We recommend you to check out our latest CLI documentation for performing content management activities.
contentstack-express Command-line Utility
Installation
Note: This version of command-line utility can be used only for v3 stacks. Use command-line utility v1.x, for v2 stacks.
Run the following command in terminal or command prompt to globally install the latest version of contentstack-express command-line utility on your system:
$ npm install -g contentstack-cli
You might need administrator privileges to perform this installation.
Commands in contentstack-express command-line utility
The contentstack-express command-line utility offers a useful set of commands to help you achieve the support work for contentstack-express such as publishing, unpublishing, synchronizing the data, connecting existing stacks, and so on.
Note: These commands are specific to only contentstack-express command-line utility.
** *** **** ***** ** **** *** Contentstack! *** **** ** ***** **** *** ** Note: This version of contentstack-express command-line utility can be used only
Connect
The connect command is used to connect to a existing stack. Navigate to a location on your computer and create a site development folder using the following command.
$ contentstack connect
You'll be guided through a step-by-step procedure to create the directory where the stack's files will be kept.
Publish
The publish command is used to publish the content to the specified environment.
$ contentstack publish
You'll be guided through a step-by-step procedure to publish content of the stack.
Unpublish
The unpublish command is used to unpublish the content from the specified environment.
$ contentstack unpublish
You'll be guided through a step-by-step procedure to unpublish content of the stack.
Sync
The sync command is used to synchronize all the published content on your web application.
$ contentstack sync
You'll be guided through a step-by-step procedure to synchronize all the content of the stack.
Plugin
The 'plugin create' command creates the plugin with the basic structure.
$ contentstack plugin create YOUR_PLUGIN_NAME
Once the plugin is created, you can activate it in config/all.js file.
Links
License
Copyright © 2018 Contentstack. All Rights Reserved.