You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/src/commands/add-chain.ts
+39-1Lines changed: 39 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,15 @@ export function createAddChainCommand(
74
74
})
75
75
.option("instance-of",{
76
76
describe:
77
-
"(SVM v4 only) Skip program deploy and create a new instance under the existing program at this address. Mutually exclusive with --binary/--program-key.",
77
+
"(SVM v4 only) Skip program deploy and create a new instance under the existing program at this address. Mutually exclusive with --deploy-program/--binary/--program-key.",
78
78
type: "string"asconst,
79
79
})
80
+
.option("deploy-program",{
81
+
describe:
82
+
"(SVM) Deploy a fresh program AND create the first instance under it. One of --deploy-program or --instance-of is required for Solana. For v4+ the recommended flow is to first run `ntt solana deploy-program` and then `add-chain --instance-of <programId>`.",
83
+
type: "boolean"asconst,
84
+
default: false,
85
+
})
80
86
.option("instance-key",{
81
87
describe:
82
88
"(SVM v4 only) Path to the keypair file to use as the Instance account. Defaults to a freshly-generated keypair (written to `<chain>-instance.json` in the deployment dir).",
@@ -303,6 +309,38 @@ export function createAddChainCommand(
303
309
// v4 multi-host path: --instance-of <programId> creates a fresh Instance
304
310
// under the existing program rather than deploying a new one.
0 commit comments