@hubspot/cms-cli
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -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'); |
@@ -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 @@ |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
19015
20
533
102
80
8
+ Added@hubspot/api-auth-lib@0.0.12(transitive)
+ Added@hubspot/cms-lib@0.0.12(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedunixify@1.0.0(transitive)
- Removed@hubspot/api-auth-lib@0.0.11(transitive)
- Removed@hubspot/cms-lib@0.0.11(transitive)
Updated@hubspot/cms-lib@^0.0.12