@onkernel/cli 0.0.1-alpha.2 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -74,10 +74,7 @@ program.command("deploy").description("Deploy a Kernel application").argument("<
74
74
  console.error("Please set your Kernel API key using: export KERNEL_API_KEY=your_api_key");
75
75
  process.exit(1);
76
76
  }
77
- const client = new Kernel({
78
- apiKey: process.env["KERNEL_API_KEY"],
79
- baseURL: process.env["KERNEL_BASE_URL"] || "http://localhost:3001"
80
- });
77
+ const client = new Kernel();
81
78
  console.log(chalk.green(`Compressing files...`));
82
79
  const tmpZipFile = tmp.fileSync({ postfix: ".zip" });
83
80
  try {
@@ -132,10 +129,7 @@ program.command("invoke").description("Invoke a deployed Kernel application").op
132
129
  console.error("Please set your Kernel API key using: export KERNEL_API_KEY=your_api_key");
133
130
  process.exit(1);
134
131
  }
135
- const client = new Kernel({
136
- apiKey: process.env["KERNEL_API_KEY"],
137
- baseURL: process.env["KERNEL_BASE_URL"] || "http://localhost:3001"
138
- });
132
+ const client = new Kernel();
139
133
  console.log(`Invoking "${appName}" with action "${actionName}" and payload:`);
140
134
  console.log(JSON.stringify(parsedPayload, null, 2));
141
135
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/cli",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.2",
4
4
  "description": "Kernel CLI",
5
5
  "type": "module",
6
6
  "module": "index.ts",