diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 58e194db7b3..003fac98c76 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -44,6 +44,7 @@ func main() { provisionCmd := cli.NewProvisionCmd() bootstrapCmd := cli.NewBootstrapCmd() certsCmd := cli.NewCertsCmd() + subscriptionsCmd := cli.NewSubscriptionCmd() configCmd := cli.NewConfigCmd() invitationsCmd := cli.NewInvitationsCmd() journalCmd := cli.NewJournalCmd() @@ -59,6 +60,7 @@ func main() { rootCmd.AddCommand(provisionCmd) rootCmd.AddCommand(bootstrapCmd) rootCmd.AddCommand(certsCmd) + rootCmd.AddCommand(subscriptionsCmd) rootCmd.AddCommand(configCmd) rootCmd.AddCommand(invitationsCmd) rootCmd.AddCommand(journalCmd) @@ -112,6 +114,14 @@ func main() { "HTTP adapter URL", ) + rootCmd.PersistentFlags().StringVarP( + &sdkConf.ReaderURL, + "reader-url", + "R", + sdkConf.ReaderURL, + "Reader URL", + ) + rootCmd.PersistentFlags().StringVarP( &sdkConf.InvitationsURL, "invitations-url", @@ -232,7 +242,22 @@ func main() { "Bootstrap state query parameter", ) + rootCmd.PersistentFlags().StringVarP( + &cli.Topic, + "topic", + "T", + "", + "Subscription topic query parameter", + ) + + rootCmd.PersistentFlags().StringVarP( + &cli.Contact, + "contact", + "C", + "", + "Subscription contact query parameter", + ) if err := rootCmd.Execute(); err != nil { log.Fatal(err) } -} +} \ No newline at end of file