Socket
Socket
Sign inDemoInstall

@hubspot/cms-cli

Package Overview
Dependencies
244
Maintainers
8
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.11 to 0.0.12

bin/hscms-fetch.js

5

bin/hscms-sync.js

@@ -16,3 +16,2 @@ #!/usr/bin/env node

} = require('../lib/commonOpts');
const { normalizePath } = require('@hubspot/cms-lib/path');

@@ -49,5 +48,3 @@ program

const normalizedDest = normalizePath(dest);
sync(portalId, src, normalizedDest)
sync(portalId, src, dest)
.then(() => {

@@ -54,0 +51,0 @@ logger.log('Sync complete');

4

bin/hscms-upload.js

@@ -18,3 +18,3 @@ #!/usr/bin/env node

} = require('../lib/commonOpts');
const { normalizePath } = require('@hubspot/cms-lib/path');
const { convertToUnixPath } = require('@hubspot/cms-lib/path');

@@ -56,3 +56,3 @@ program

const normalizedDest = normalizePath(dest);
const normalizedDest = convertToUnixPath(dest);

@@ -59,0 +59,0 @@ upload(portalId, src, normalizedDest)

@@ -8,3 +8,2 @@ #!/usr/bin/env node

const { logger } = require('@hubspot/cms-lib/logger');
const { normalizePath } = require('@hubspot/cms-lib/path');

@@ -48,5 +47,3 @@ const {

const normalizedDest = normalizePath(dest);
watch(portalId, src, normalizedDest);
watch(portalId, src, dest);
});

@@ -53,0 +50,0 @@

@@ -8,2 +8,3 @@ #!/usr/bin/env node

.command('upload [src] [dest]', 'upload a single asset')
.command('fetch [path] [dest]', 'fetch a file or directory by path')
.command('sync [src] [dest]', 'upload a directory of assets')

@@ -10,0 +11,0 @@ .command('watch [src] [dest]', 'watch a directory of assets and upload files')

@@ -22,2 +22,6 @@ const Logger = require('@hubspot/cms-lib/logger');

const addOverwriteOptions = program => {
program.option('--overwrite', 'overwrite existing files', false);
};
const setLogLevel = (options = {}) => {

@@ -58,4 +62,5 @@ const { debug } = options;

addConfigOptions,
addOverwriteOptions,
setLogLevel,
getPortalId,
};
{
"name": "@hubspot/cms-cli",
"version": "0.0.11",
"version": "0.0.12",
"description": "CLI for interacting with the HubSpot CMS",
"license": "Apache-2.0",
"dependencies": {
"@hubspot/api-auth-lib": "^0.0.11",
"@hubspot/cms-lib": "^0.0.11",
"@hubspot/api-auth-lib": "^0.0.12",
"@hubspot/cms-lib": "^0.0.12",
"commander": "^2.16.0",

@@ -20,3 +21,3 @@ "inquirer": "^6.3.1"

},
"gitHead": "6615c512ed462ade7b7744633931f6ef98057882"
"gitHead": "33053f6dfc16ad40508544697b2f45f0a6b39a9f"
}

@@ -70,2 +70,11 @@ # @hubspot/cms-cli

Fetch a file or directory by path
```bash
hscms fetch --portal=DEV [path] [dest]
# Overwrite existing files
hscms fetch --portal=DEV --overwrite [path] [dest]
```
Sync a directory of files using the file mapping service

@@ -72,0 +81,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc