@vizzly/cli
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -92,2 +92,16 @@ #!/usr/bin/env node | ||
program | ||
.command("sign-in") | ||
.description("Sign into Vizzly.") | ||
.requiredOption("-t, --token <type>", "Single-use auth token found at app.vizzly.co") | ||
.action(commands.signIn); | ||
program | ||
.command("create-live-dashboard") | ||
.description("Create a new live dashboard.") | ||
.action(commands.createLiveDashboard); | ||
program | ||
.command("upload-public-key") | ||
.description("Upload your public key to your Vizzly account.") | ||
.option("-pub, --public-key <type>", "Path to your public key.", commands.DEFAULT_PUBLIC_KEY_FILE_PATH) | ||
.action(commands.uploadPublicKey); | ||
program | ||
.command("validate") | ||
@@ -108,3 +122,3 @@ .description("Validates a Vizzly config") | ||
program | ||
.command("init") | ||
.command("init-config") | ||
.description("Create skeleton of the Vizzly config file.") | ||
@@ -117,2 +131,10 @@ .addOption(new commander_1.Option("-i, --integration <integration>", "Integration type") | ||
program | ||
.command("setup") | ||
.description("Create a Vizzly project.") | ||
.addOption(new commander_1.Option("-i, --integration <integration>", "Integration type") | ||
.choices(VizzlyConfig_1.SUPPORTED_CLIENTS) | ||
.makeOptionMandatory()) | ||
.option("-pub, --public-key <type>", "Path to your public key.", commands.DEFAULT_PUBLIC_KEY_FILE_PATH) | ||
.action(commands.setupVizzlyProject); | ||
program | ||
.command("docs") | ||
@@ -119,0 +141,0 @@ .description("Open the Vizzly docs.") |
@@ -24,1 +24,5 @@ "use strict"; | ||
__exportStar(require("./accessTokens"), exports); | ||
__exportStar(require("./signIn"), exports); | ||
__exportStar(require("./createLiveDashboard"), exports); | ||
__exportStar(require("./uploadPublicKey"), exports); | ||
__exportStar(require("./setupVizzlyProject"), exports); |
@@ -33,13 +33,6 @@ "use strict"; | ||
var chalk_1 = __importDefault(require("chalk")); | ||
var readCertificate_1 = __importDefault(require("../readCertificate")); | ||
exports.DEFAULT_VIZZLY_CONFIG_FILE = "vizzly.config.json"; | ||
var readPublicCert = function (path) { | ||
try { | ||
return fs_1.default.readFileSync(path).toString(); | ||
} | ||
catch (e) { | ||
return null; | ||
} | ||
}; | ||
var initVizzlyConfig = function (args) { | ||
var publicKeyContent = readPublicCert(args.publicKey); | ||
var publicKeyContent = (0, readCertificate_1.default)(args.publicKey); | ||
if (publicKeyContent) { | ||
@@ -46,0 +39,0 @@ var initialVizzlyConfig = VizzlyConfig.init(args.integration, publicKeyContent); |
{ | ||
"name": "@vizzly/cli", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"main": "index.js", | ||
@@ -47,2 +47,3 @@ "repository": "git@github.com:vizzly-co/cli.git", | ||
"glob": "^8.0.3", | ||
"isomorphic-fetch": "^3.0.0", | ||
"joi": "^17.7.0", | ||
@@ -52,2 +53,3 @@ "jose": "^4.9.3", | ||
"lodash": "^4.17.21", | ||
"node-fetch": "^3.3.0", | ||
"node-jose": "^2.1.1", | ||
@@ -54,0 +56,0 @@ "node-sql-parser": "^4.5.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74962
24
1458
13
8
+ Addedisomorphic-fetch@^3.0.0
+ Addednode-fetch@^3.3.0
+ Addeddata-uri-to-buffer@4.0.1(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@2.7.03.3.2(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
+ Addedwhatwg-url@5.0.0(transitive)