Skip to content

Commit 669fd1a

Browse files
author
Aamod Pisat
committed
3.0.1
1 parent 17e1f71 commit 669fd1a

File tree

9 files changed

+874
-552
lines changed

9 files changed

+874
-552
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[![Built.io Contentstack](https://contentstackdocs.built.io/static/images/logo.png)](https://www.built.io/products/contentstack/overview)
22

3-
# A CLI utilities for Built.io Contentstack
3+
# Built.io Contentstack Command Line Interface(CLI).
44

55
## Installation
6+
**Note: This version of Built.io Contentstack CLI can be used only for V3 stacks. Use CLI version 1.x, for V2 stacks.**
67

78
Run the following command in a Terminal or Command Prompt to globally install the latest version of Built.io Contentstack CLI on your system:
89

@@ -27,8 +28,10 @@ Built.io Contentstack CLI comes with handy commands which helps to achieve the s
2728
****
2829
***
2930
**
31+
32+
Note: This version of Built.io Contentstack CLI can be used only for V3 stacks. Use CLI version 1.x, for V2 stacks.
3033
31-
Built.io Contentstack Command Line Interface 1.0.3
34+
Built.io Contentstack Command Line Interface 3.0.0
3235
3336
Usage: contentstack [command]
3437
@@ -90,8 +93,7 @@ Once the plugin is created, you can activate it in config/all.js file.
9093

9194
## Links
9295
- [Website](https://www.built.io/products/contentstack/overview)
93-
- [Official Documentation](http://contentstackdocs.built.io/developer/javascript/quickstart)
96+
- [Official Documentation](https://contentstackdocs.built.io/developer/web/framework-cli)
9497

9598
### License
96-
Copyright © 2012-2016 [Built.io](https://www.built.io/). All Rights Reserved.
97-
=======
99+
Copyright © 2012-2017 [Built.io](https://www.built.io/). All Rights Reserved.

bin/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function optionConversion(options) {
6464
environment: options.env,
6565
language: options.lang
6666
};
67-
options.language = options._events.language = _options.language;
67+
options.language = options._events.language = true;
6868
options.environment = options._events.environment = _options.environment;
6969
delete options.env;
7070
delete options.lang;
@@ -74,6 +74,7 @@ function optionConversion(options) {
7474
}
7575
// printing the Built.io Contentstack Animation
7676
console.log('\n'+messages+'\x1b[0m\n');
77+
console.log('\x1b[31m Note: This version of Built.io Contentstack CLI can be used only for V3 stacks. Use CLI version 1.x, for V2 stacks.\x1b[0m\n');
7778

7879
program
7980
.version(pkg.version || "0.1.x");
@@ -129,6 +130,7 @@ program
129130
program
130131
.command('sync')
131132
.option('-e, --env <environment>', 'Enter the environment of which the content needs to be synchronized', undefined)
133+
.option('-t, --type [type]', 'Enter a type of content to include in publishing [content_types/assets/all]', /(content_types|assets|all)/, undefined)
132134
.option('-l, --lang [language]', 'Enter the language of which the content needs to be synchronized', undefined)
133135
.option('-c, --content_types [content_types]', 'Enter the content types to be included in synchronization (comma(",") seperated)', list, undefined)
134136
.option('-s, --skip_content_types [skip_content_types]', 'Enter the content types to be excluded from synchronization (comma(",") seperated)', list, undefined)
@@ -145,9 +147,7 @@ program
145147
// running the synchronization in domain
146148
context.run(function() {
147149
var _options = optionConversion(options);
148-
console.error(_options);
149150
_options = helper.merge(getDefaultOptions(options, options._events), _options);
150-
console.error(_options);
151151
var sync = require('./../lib/sync');
152152
new sync(_options);
153153
});
@@ -236,7 +236,7 @@ if (program.args.length == 0) {
236236
, '\nOptions:'
237237
, ' -h, --help output usage information'
238238
, ' -V, --version output the version number'
239-
, '\nDocumentation can be found at http://contentstackdocs.built.io/'
239+
, '\nDocumentation can be found at https://contentstackdocs.built.io/'
240240
].join('\n');
241241
console.log(message);
242242
process.exit(1);

lib/config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = exports = {
5959
}
6060
},
6161
contentstack: {
62-
host: "https://api.contentstack.io",
62+
host: "https://api.contentstack.io/v3",
6363
socket: "https://contentstack-realtime.built.io/",
6464
urls: {
6565
stacks: "/stacks/",

0 commit comments

Comments
 (0)