@primitivedotdev/cli 0.30.1 → 0.30.3

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/oclif/index.js +12 -10
  2. package/package.json +5 -1
@@ -11748,8 +11748,7 @@ function redactConfig(config) {
11748
11748
  };
11749
11749
  }
11750
11750
  var ConfigSetCommand = class ConfigSetCommand extends Command {
11751
- static hidden = true;
11752
- static summary = "Set hidden Primitive CLI request config";
11751
+ static summary = "Set a Primitive CLI request environment";
11753
11752
  static flags = {
11754
11753
  environment: Flags.string({
11755
11754
  char: "e",
@@ -11783,8 +11782,7 @@ var ConfigSetCommand = class ConfigSetCommand extends Command {
11783
11782
  }
11784
11783
  };
11785
11784
  var ConfigUseCommand = class ConfigUseCommand extends Command {
11786
- static hidden = true;
11787
- static summary = "Switch active Primitive CLI request config";
11785
+ static summary = "Switch the active Primitive CLI request environment";
11788
11786
  static args = { environment: Args.string({
11789
11787
  description: "Environment name to use",
11790
11788
  required: true
@@ -11802,8 +11800,7 @@ var ConfigUseCommand = class ConfigUseCommand extends Command {
11802
11800
  }
11803
11801
  };
11804
11802
  var ConfigListCommand = class ConfigListCommand extends Command {
11805
- static hidden = true;
11806
- static summary = "List hidden Primitive CLI request configs";
11803
+ static summary = "List Primitive CLI request environments";
11807
11804
  static flags = {
11808
11805
  json: Flags.boolean({ description: "Print JSON" }),
11809
11806
  "show-secrets": Flags.boolean({ description: "Show header values instead of redacting them" })
@@ -11833,8 +11830,7 @@ var ConfigListCommand = class ConfigListCommand extends Command {
11833
11830
  }
11834
11831
  };
11835
11832
  var ConfigResetCommand = class ConfigResetCommand extends Command {
11836
- static hidden = true;
11837
- static summary = "Reset hidden Primitive CLI request config";
11833
+ static summary = "Reset Primitive CLI request environments";
11838
11834
  static flags = { environment: Flags.string({
11839
11835
  char: "e",
11840
11836
  description: "Only remove one environment"
@@ -11858,6 +11854,11 @@ var ConfigResetCommand = class ConfigResetCommand extends Command {
11858
11854
  process.stderr.write(`Primitive CLI environment ${environment} removed.\n`);
11859
11855
  }
11860
11856
  };
11857
+ var ConfigCommand = class extends ConfigListCommand {
11858
+ static hidden = true;
11859
+ static summary = "Manage Primitive CLI request environments";
11860
+ static description = "Manage local Primitive CLI request environments for API endpoint overrides and request headers.";
11861
+ };
11861
11862
  //#endregion
11862
11863
  //#region src/oclif/commands/doctor.ts
11863
11864
  const MIN_NODE_MAJOR = 22;
@@ -13316,8 +13317,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
13316
13317
  name: "Primitive Team",
13317
13318
  url: "https://primitive.dev"
13318
13319
  };
13319
- const SDK_VERSION_RANGE = "^0.30.1";
13320
- const CLI_VERSION_RANGE = "^0.30.1";
13320
+ const SDK_VERSION_RANGE = "^0.30.3";
13321
+ const CLI_VERSION_RANGE = "^0.30.3";
13321
13322
  const ESBUILD_VERSION_RANGE = "^0.27.0";
13322
13323
  function renderHandler() {
13323
13324
  return `// env.PRIMITIVE_API_KEY is auto-injected by the Primitive Functions runtime.
@@ -15851,6 +15852,7 @@ const generatedCommands = Object.fromEntries(operationManifest.filter((operation
15851
15852
  const COMMANDS = {
15852
15853
  completion: CompletionCommand,
15853
15854
  "list-operations": ListOperationsCommand,
15855
+ config: ConfigCommand,
15854
15856
  "config:list": ConfigListCommand,
15855
15857
  "config:reset": ConfigResetCommand,
15856
15858
  "config:set": ConfigSetCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitivedotdev/cli",
3
- "version": "0.30.1",
3
+ "version": "0.30.3",
4
4
  "description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -27,6 +27,10 @@
27
27
  "cli": {
28
28
  "description": "CLI authentication"
29
29
  },
30
+ "config": {
31
+ "description": "Manage local Primitive CLI request environments",
32
+ "hidden": true
33
+ },
30
34
  "account": {
31
35
  "description": "Manage your account settings, storage, and webhook secret"
32
36
  },