@powerhousedao/academy 0.1.0-dev.2 → 0.1.0-dev.4
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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/docs/academy/01-GetStarted/00-ExploreDemoPackage.md +78 -0
- package/docs/academy/01-GetStarted/{02-ToDoList/01-CreateNewPowerhouseProject.md → 01-CreateNewPowerhouseProject.md} +10 -8
- package/docs/academy/01-GetStarted/02-DefineToDoListDocumentModel.md +97 -0
- package/docs/academy/01-GetStarted/{02-ToDoList/03-ImplementOperationReducers.md → 03-ImplementOperationReducers.md} +20 -16
- package/docs/academy/01-GetStarted/{02-ToDoList/04-BuildToDoListEditor.md → 04-BuildToDoListEditor.md} +15 -15
- package/docs/academy/01-GetStarted/{00-GetStarted.mdx → home.mdx} +12 -12
- package/docs/academy/01-GetStarted/images/ConnectAddress.png +0 -0
- package/docs/academy/01-GetStarted/images/LoginComplete.png +0 -0
- package/docs/academy/01-GetStarted/images/OperationsHistory.png +0 -0
- package/docs/academy/01-GetStarted/images/RenownLogin.png +0 -0
- package/docs/academy/01-GetStarted/images/ReturnToConnect.png +0 -0
- package/docs/academy/{02-AdvancedTutorial/01-Create/01-SetupBuilderEnvironment.md → 02-MasteryTrack/01-BuilderEnvironment/01-Prerequisites.md} +78 -43
- package/docs/academy/02-MasteryTrack/01-BuilderEnvironment/02-StandardDocumentModelWorkflow.md +253 -0
- package/docs/academy/{02-AdvancedTutorial/01-Create/00-BuilderTools.md → 02-MasteryTrack/01-BuilderEnvironment/03-BuilderTools.md} +1 -1
- package/docs/academy/02-MasteryTrack/01-BuilderEnvironment/_category_.json +7 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/01-WhatIsADocumentModel.md +188 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/02-SpecifyTheStateSchema.md +72 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/03-SpecifyDocumentOperations.md +119 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/04-UseTheDocumentModelGenerator.md +116 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/05-ImplementDocumentReducers.md +282 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/06-ImplementDocumentModelTests.md +277 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/07-ExampleToDoListRepository.md +1 -0
- package/docs/academy/02-MasteryTrack/02-DocumentModelCreation/_category_.json +7 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/02-ConfiguringDrives.md +124 -0
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/03-BuildingADriveExplorer.md +1 -1
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/07-DocumentTools/00-DocumentToolbar.md +20 -0
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/01-OperationHistory.md +1 -1
- package/docs/{renown/02-renown-login-flow.md → academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/01-RenownAuthenticationFlow.md} +11 -10
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/_category_.json +6 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/images/ConnectAddress.png +0 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/images/LoginComplete.png +0 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/images/OperationsHistory.png +0 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/images/RenownLogin.png +0 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/images/ReturnToConnect.png +0 -0
- package/docs/academy/02-MasteryTrack/03-BuildingUserExperiences/images/CreateNewDrive.png +0 -0
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/01-ReadingAndWritingThroughTheAPI.mdx +2 -2
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/02-GraphQLAtPowerhouse.md +1 -1
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/graphql/index.md +1 -1
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/02-IntroductionToPackages.md +2 -2
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/03-RunOnACloudServer.md +3 -3
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/03-SetupEnvironment.md +1 -1
- package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/_category_.json +1 -1
- package/docs/academy/04-APIReferences/00-PowerhouseCLI.md +738 -0
- package/docs/academy/04-APIReferences/01-ReactHooks.md +16 -0
- package/docs/academy/04-APIReferences/02-ReactorAPI.md +1 -0
- package/docs/academy/04-APIReferences/03-Configuration.md +64 -0
- package/docs/academy/05-Architecture/00-PowerhouseArchitecture.md +1 -1
- package/docs/academy/{04-ComponentLibrary/01-PowerhouseDesignSystem.md → 06-ComponentLibrary/00-PowerhouseDesignSystem.md} +9 -9
- package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/02-BuildingWithScalars.md +2 -2
- package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/03-Scalar-Components/01-phid-field.mdx +1 -1
- package/docs/academy/06-ComponentLibrary/03-Scalar-Components/02-input-field.mdx +0 -0
- package/docs/academy/{06-Cookbook.md → 07-Cookbook.md} +106 -17
- package/docs/academy/08-Glossary.md +82 -0
- package/docs/bookofpowerhouse/02-GeneralFrameworkAndPhilosophy.md +36 -10
- package/docs/bookofpowerhouse/05-SNOsandANewModelForOSSandPublicGoods.md +27 -56
- package/docs/bookofpowerhouse/06-SNOsInActionAndPlatformEconomies.md +48 -17
- package/docusaurus.config.ts +7 -14
- package/package.json +10 -7
- package/scripts/generate-combined-cli-docs.ts +80 -0
- package/sidebars.ts +131 -11
- package/src/components/HomepageFeatures/index.tsx +10 -10
- package/src/css/custom.css +11 -0
- package/src/pages/{index.tsx → _archive-homepage.tsx} +1 -1
- package/src/theme/DocCardList/index.tsx +30 -0
- package/static/img/storybook-icon.svg +18 -0
- package/docs/academy/01-GetStarted/01_InstallDemoPackage.md +0 -38
- package/docs/academy/01-GetStarted/02-ToDoList/02-DefineToDoListDocumentModel.md +0 -86
- package/docs/academy/01-GetStarted/02-ToDoList/_category_.json +0 -8
- package/docs/academy/02-AdvancedTutorial/01-Create/02-MoreTutorials/_category_.json +0 -8
- package/docs/academy/02-AdvancedTutorial/01-Create/02-StandardDocumentModelWorkflow.md +0 -229
- package/docs/academy/02-AdvancedTutorial/03-BuildingUserExperiences/02-ConfiguringDrives.md +0 -51
- package/docs/academy/03-APIReferences/00-PowerhouseCLI.md +0 -1
- package/docs/academy/07-Glossary.md +0 -50
- package/docs/renown/01-intro.md +0 -18
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/DocumentModelHeader.png +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/DocumentModelOperations.png +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/OpenDocumentModelEditor.gif +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/completeEditor.png +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/connectApp.gif +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/form.png +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/mytodolist.gif +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/reducers.png +0 -0
- /package/docs/academy/01-GetStarted/{02-ToDoList/images → images}/vscode.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/01-BuildingBeautifulDocumentEditors.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/02-RevisionHistoryTimeline.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/images/committer-address-popup.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/images/revision-hash-popup.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/images/revision-history-list.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/07-DocumentTools/images/signature-details-popup.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/06-Authorization/Authorization.md → 02-MasteryTrack/03-BuildingUserExperiences/08-Authorization/02-Authorization.md} +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/images/CreateDrive.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/03-BuildingUserExperiences/images/mytodolist.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/03-WorkingWithSubgraphs/02-GraphQLAndSubgraphs.mdx +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/03-WorkingWithSubgraphs/03-WorkingWithSubgraphs.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/03-WorkingWithSubgraphs/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/04-analytics-processor.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/01-SetupBuilderEnvironment.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/02-CreateNewPowerhouseProject.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/03-GenerateAnAnalyticsProcessor.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/04-UpdateAnalyticsProcessor.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/Create-SPV.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/Create-a-new-asset.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/Create-a-transaction.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/Transaction-table.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/create-a-new-RWA-document.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/05-AnalyticsProcessorTutorial/images/granularity.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/GraphQL References/QueryingADocumentWithGraphQL.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/GraphQL References/rwa-reports/listener-raw.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/GraphQL References/rwa-reports/raw-reports1.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/GraphQL References/rwa-reports/raw-reports2.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/GraphQL References/rwa-reports/rwaRegister.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/apse.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/best-practices.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/filter.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/filteroptions.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/graphql/integration.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/dbs.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/high-level.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/indexeddb.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/libs-core.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/libs.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/lod.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/logo.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/navbar.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-1.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-2.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-3.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-4.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-5.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/overview-6.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/paths-1.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/images/paths-2.jpg +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/intro.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/benchmarks.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/browser.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/compatibility.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/index.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/memory.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/pg.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/schema.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/typescript/utilities.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/use-cases/index.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/use-cases/maker.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/06-Analytics Engine/use-cases/processors.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/images/OperationHistory.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/images/OperationsQuery.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/images/QueryDocumentID.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/04-WorkWithData/images/SwitchboardButton.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/00-IntegrateInAFront-End +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/01-IntroducingFusion +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/02-PublishYourProject.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/04-GraphQLNamespacing +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/05-LaunchYourBackend.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/06-LaunchYourFrontend.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/images/SSHConnection.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/images/homedesign.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/images/keyconcepts.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial → 02-MasteryTrack}/05-Launch/images/tutorialschema.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/01-SetupBuilderEnvironment.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/02-CreateNewPowerhouseProject.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/03-DefineChatroomDocumentModel.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/04-ImplementOperationReducers.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/05-ImplementChatroomEditor.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/06-LaunchALocalReactor.md +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/_category_.json +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image-1.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image-2.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image-3.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image-4.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image-5.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/image.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/ChatRoomConnectApp.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/ChatRoomTest.gif +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/completeEditor.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/form.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/reducers.png +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials → 03-ExampleUsecases}/Chatroom/images/vscode.png +0 -0
- /package/docs/academy/{03-APIReferences → 04-APIReferences}/_category_.json +0 -0
- /package/docs/academy/05-Architecture/05-DocumentModelTheory/{01-WhatIsADocumentModel.md → 01-WhatIsADocumentModel} +0 -0
- /package/docs/academy/05-Architecture/05-DocumentModelTheory/{02-DAOandDocumentsModelsQ+A.md → 02-DAOandDocumentsModelsQ+A} +0 -0
- /package/docs/academy/05-Architecture/05-DocumentModelTheory/{02-domain-modeling.md → 02-domain-modeling} +0 -0
- /package/docs/academy/05-Architecture/05-DocumentModelTheory/{03-BenefitsOfDocumentModels.md → 03-BenefitsOfDocumentModels} +0 -0
- /package/docs/academy/{02-AdvancedTutorial/01-Create/02-MoreTutorials/04-UtilitiesAndTips.md → 05-Architecture/05-DocumentModelTheory/04-UtilitiesAndTips} +0 -0
- /package/docs/academy/05-Architecture/05-DocumentModelTheory/{05-best-practices.md → 05-best-practices} +0 -0
- /package/docs/academy/{04-ComponentLibrary/03-Scalar-Components/02-input-field.mdx → 06-ComponentLibrary/01-StorybookLink} +0 -0
- /package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/04-Complex-Components/01-sidebar.mdx +0 -0
- /package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/05-Layout-Components/01-test-toupdate.mdx +0 -0
- /package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/06-Fragments/01-test-toupdate.mdx +0 -0
- /package/docs/academy/{04-ComponentLibrary → 06-ComponentLibrary}/_category_.json +0 -0
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
# Powerhouse CLI (WIP)
|
|
2
|
+
|
|
3
|
+
### Installing the Powerhouse CLI
|
|
4
|
+
:::tip
|
|
5
|
+
The Powerhouse CLI tool is the only essential tool to install on this page.
|
|
6
|
+
Once you've installed it with the command below you can continue to the next steps.
|
|
7
|
+
:::
|
|
8
|
+
|
|
9
|
+
The Powerhouse CLI (`ph-cmd`) is a command-line interface tool that provides essential commands for managing Powerhouse projects. You can get access to the Powerhouse ecosystem tools by installing them globally using:
|
|
10
|
+
```bash
|
|
11
|
+
pnpm install -g ph-cmd
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This tool will be fundamental on your journey when creating, building, and running Document Models
|
|
15
|
+
|
|
16
|
+
<!-- AUTO-GENERATED-CLI-COMMANDS-START -->\n<!-- This content is automatically generated. Do not edit directly. -->\n### ph-cmd Commands\n\n- [Init](#init)
|
|
17
|
+
- [Setup Globals](#setup-globals)
|
|
18
|
+
- [Update](#update)
|
|
19
|
+
- [Use](#use)
|
|
20
|
+
|
|
21
|
+
## Init
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
Command Overview:
|
|
25
|
+
The init command creates a new Powerhouse project with optimal defaults. It sets up a fully
|
|
26
|
+
configured project structure with all necessary dependencies, configurations, and boilerplate.
|
|
27
|
+
|
|
28
|
+
This command:
|
|
29
|
+
1. Creates a new project with the specified name.
|
|
30
|
+
2. Installs all required dependencies for Powerhouse development.
|
|
31
|
+
3. Sets up a proper project structure and configuration files.
|
|
32
|
+
4. Can run in interactive mode for customized setup.
|
|
33
|
+
|
|
34
|
+
Arguments:
|
|
35
|
+
[project-name] Optional. Name of the project to create. If not provided,
|
|
36
|
+
you'll be prompted to provide a name, or the current directory
|
|
37
|
+
will be used if in interactive mode.
|
|
38
|
+
|
|
39
|
+
Options:
|
|
40
|
+
-p, --project Specify the name of the project to create.
|
|
41
|
+
|
|
42
|
+
-i, --interactive Run the command in interactive mode, which will guide you
|
|
43
|
+
through the project setup with customizable options.
|
|
44
|
+
|
|
45
|
+
-v, --version Specify the development version to use. Defaults to "main".
|
|
46
|
+
|
|
47
|
+
--dev Use the "development" version of the boilerplate.
|
|
48
|
+
|
|
49
|
+
--staging Use the "staging" version of the boilerplate.
|
|
50
|
+
|
|
51
|
+
--package-manager Override the auto-detected package manager with the specified one.
|
|
52
|
+
|
|
53
|
+
Project Structure:
|
|
54
|
+
The command will create a complete project with:
|
|
55
|
+
- Properly configured TypeScript and build settings
|
|
56
|
+
- Powerhouse document-model integration
|
|
57
|
+
- All necessary package.json dependencies
|
|
58
|
+
- Development scripts and tooling
|
|
59
|
+
|
|
60
|
+
Examples:
|
|
61
|
+
$ ph init my-awesome-project # Create a new project named "my-awesome-project"
|
|
62
|
+
$ ph init -i # Create a project in interactive mode
|
|
63
|
+
$ ph init -p my-project # Same as ph init my-project
|
|
64
|
+
$ ph init --dev # Use development version of boilerplate
|
|
65
|
+
$ ph init -v beta # Use specific version
|
|
66
|
+
$ ph init --package-manager yarn # Use yarn as package manager
|
|
67
|
+
$ ph init my-awesome-project --dev --package-manager pnpm # Create a project with Powerhouse dev packages and pnpm as package manager
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Setup Globals
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Command Overview:
|
|
74
|
+
The setup-globals command initializes a new Powerhouse project with the necessary global
|
|
75
|
+
configuration. It helps you set up a project quickly with proper defaults and dependencies.
|
|
76
|
+
|
|
77
|
+
This command:
|
|
78
|
+
1. Creates a new project with the specified name or in the current directory
|
|
79
|
+
2. Sets up all required Powerhouse dependencies
|
|
80
|
+
3. Configures the project with appropriate settings
|
|
81
|
+
4. Can run in interactive mode to guide you through the setup process
|
|
82
|
+
|
|
83
|
+
Arguments:
|
|
84
|
+
[project-name] Optional. Name of the project to create. If not provided,
|
|
85
|
+
the command will use the current directory.
|
|
86
|
+
|
|
87
|
+
Options:
|
|
88
|
+
-p, --project Specify the name of the project to create.
|
|
89
|
+
|
|
90
|
+
-i, --interactive Run the command in interactive mode, which will guide you
|
|
91
|
+
through the setup process with questions and prompts.
|
|
92
|
+
|
|
93
|
+
-v, --version Specify the development version to use. Defaults to "main".
|
|
94
|
+
|
|
95
|
+
--dev Use the "development" version of the boilerplate.
|
|
96
|
+
|
|
97
|
+
--staging Use the "staging" version of the boilerplate.
|
|
98
|
+
|
|
99
|
+
--package-manager Override the auto-detected package manager with the specified one.
|
|
100
|
+
|
|
101
|
+
Project Structure:
|
|
102
|
+
The command will set up a project with the following structure:
|
|
103
|
+
- Proper configuration files for TypeScript and ESLint.
|
|
104
|
+
- Dependencies for Powerhouse packages.
|
|
105
|
+
- Build and development scripts.
|
|
106
|
+
|
|
107
|
+
Examples:
|
|
108
|
+
$ ph setup-globals my-project # Create a new project named "my-project"
|
|
109
|
+
$ ph setup-globals # Set up a project in the current directory
|
|
110
|
+
$ ph setup-globals -i # Run setup in interactive mode
|
|
111
|
+
$ ph setup-globals --dev # Use development version
|
|
112
|
+
$ ph setup-globals -v beta # Use specific version
|
|
113
|
+
$ ph setup-globals --package-manager npm # Use npm as package manager
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Update
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
Command Overview:
|
|
120
|
+
The update command helps you manage and update Powerhouse dependencies in your project. It provides
|
|
121
|
+
an efficient way to keep your project up-to-date with the latest versions of Powerhouse packages.
|
|
122
|
+
|
|
123
|
+
This command:
|
|
124
|
+
1. Updates all Powerhouse dependencies based on the semver ranges specified in your package.json
|
|
125
|
+
2. Can force update all dependencies to a specific environment version (dev, prod, latest)
|
|
126
|
+
3. Automatically builds any local dependencies before updating
|
|
127
|
+
4. Works with all dependencies with @powerhousedao/ prefix and special packages like document-model
|
|
128
|
+
|
|
129
|
+
Options:
|
|
130
|
+
--force <env> Force update to the latest available version for the environment specified.
|
|
131
|
+
Valid environments: dev, prod, latest.
|
|
132
|
+
- dev: Uses @dev tag for all dependencies
|
|
133
|
+
- prod/latest: Uses @latest tag for all dependencies
|
|
134
|
+
|
|
135
|
+
--package-manager Override the auto-detected package manager with the specified one.
|
|
136
|
+
|
|
137
|
+
--debug Show additional logs while executing the command.
|
|
138
|
+
|
|
139
|
+
Special Cases:
|
|
140
|
+
- Local Dependencies: If you have dependencies linked from a local monorepo (using file: or link:
|
|
141
|
+
protocols), the command will detect the monorepo root, build affected packages, then update.
|
|
142
|
+
|
|
143
|
+
- No Dependencies: If no Powerhouse dependencies are found in your project, the command will
|
|
144
|
+
display a message and exit without making changes.
|
|
145
|
+
|
|
146
|
+
Examples:
|
|
147
|
+
$ ph update # Update dependencies based on package.json ranges
|
|
148
|
+
$ ph update --force dev # Force update to latest dev version available
|
|
149
|
+
$ ph update --force prod # Force update to latest stable version available (same as latest)
|
|
150
|
+
$ ph update --force latest # Force update to latest stable version available (same as prod)
|
|
151
|
+
$ ph update --package-manager pnpm # Specify package manager to use
|
|
152
|
+
$ ph update --debug # Show debug information during update
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Use
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
Command Overview:
|
|
159
|
+
The use command allows you to quickly switch between different environments for all Powerhouse
|
|
160
|
+
dependencies in your project. It provides a convenient way to toggle between development,
|
|
161
|
+
production, and local versions of the packages.
|
|
162
|
+
|
|
163
|
+
This command:
|
|
164
|
+
1. Updates all installed Powerhouse dependencies to the specified environment
|
|
165
|
+
2. Can link to local dependencies from a monorepo for development
|
|
166
|
+
3. Only updates dependencies that are already present in your package.json
|
|
167
|
+
4. Supports special packages without the @powerhousedao prefix
|
|
168
|
+
|
|
169
|
+
Arguments:
|
|
170
|
+
<environment> Required. The environment to use. Valid options:
|
|
171
|
+
- dev: Use development versions (@dev tag)
|
|
172
|
+
- prod/latest: Use production versions (@latest tag)
|
|
173
|
+
- local: Use local filesystem versions (requires localPath)
|
|
174
|
+
|
|
175
|
+
[localPath] Path to the local monorepo. Required when environment is 'local'.
|
|
176
|
+
This should be the root of your Powerhouse monorepo.
|
|
177
|
+
|
|
178
|
+
Options:
|
|
179
|
+
--force Force environment to use, even if not in the predefined list
|
|
180
|
+
|
|
181
|
+
--package-manager Override the auto-detected package manager with the specified one.
|
|
182
|
+
|
|
183
|
+
--debug Show additional logs during execution for troubleshooting.
|
|
184
|
+
|
|
185
|
+
--use-resolved Resolves tags to their actual version numbers. For example:
|
|
186
|
+
- @dev tag will be resolved to the latest dev version (e.g. v1.0.1-dev.1)
|
|
187
|
+
- @latest tag will be resolved to the latest stable version (e.g. v1.0.0)
|
|
188
|
+
This ensures you get the exact version that matches the tag.
|
|
189
|
+
|
|
190
|
+
Special Cases:
|
|
191
|
+
- Local Development: When using the 'local' environment, dependencies are linked directly
|
|
192
|
+
to local filesystem paths, allowing for real-time development and testing.
|
|
193
|
+
|
|
194
|
+
- Missing Dependencies: The command only updates Powerhouse dependencies that are already
|
|
195
|
+
installed in your project. It won't add new ones.
|
|
196
|
+
|
|
197
|
+
Examples:
|
|
198
|
+
$ ph use dev # Switch all dependencies to development versions
|
|
199
|
+
$ ph use prod # Switch all dependencies to production versions
|
|
200
|
+
$ ph use latest # Same as 'prod', use latest production versions
|
|
201
|
+
$ ph use local /path/to/monorepo # Link to local versions in the specified monorepo
|
|
202
|
+
$ ph use dev --package-manager npm # Use npm instead of the auto-detected package manager
|
|
203
|
+
$ ph use dev --debug # Show debug information during execution
|
|
204
|
+
$ ph use dev --use-resolved # Resolve @dev tags to actual version numbers (e.g. v1.0.1-dev.1)
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
*This document was automatically generated from the help text in the codebase.*\n\n### ph-cli Commands\n\n- [Connect Build](#connect-build)
|
|
210
|
+
- [Connect Preview](#connect-preview)
|
|
211
|
+
- [Connect Studio](#connect-studio)
|
|
212
|
+
- [Dev](#dev)
|
|
213
|
+
- [Generate](#generate)
|
|
214
|
+
- [Inspect](#inspect)
|
|
215
|
+
- [Install](#install)
|
|
216
|
+
- [List](#list)
|
|
217
|
+
- [Reactor](#reactor)
|
|
218
|
+
- [Service](#service)
|
|
219
|
+
- [Switchboard](#switchboard)
|
|
220
|
+
- [Uninstall](#uninstall)
|
|
221
|
+
- [Version](#version)
|
|
222
|
+
|
|
223
|
+
## Connect Build
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
Command Overview:
|
|
227
|
+
The Connect build command creates a connect build with the project's local and external packages included.
|
|
228
|
+
|
|
229
|
+
Options:
|
|
230
|
+
--project-root <path> The root directory of the project. Default is "process.cwd()".
|
|
231
|
+
--assets-dir-name <name> The name of the assets directory. Default is "${DEFAULT_ASSETS_DIR_NAME}".
|
|
232
|
+
--external-packages-file-name <name> The name of the external packages file. Default is "${DEFAULT_EXTERNAL_PACKAGES_FILE_NAME}".
|
|
233
|
+
--styles-file-name <name> The name of the styles file. Default is "${DEFAULT_STYLES_FILE_NAME}".
|
|
234
|
+
--connect-path <path> The path to the Connect dist directory. Calls "resolveConnect()" if not provided.
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Connect Preview
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
Command Overview:
|
|
241
|
+
The Connect preview command previews a built Connect project.
|
|
242
|
+
NOTE: You must run \`ph connect build\` first.
|
|
243
|
+
|
|
244
|
+
Options:
|
|
245
|
+
--project-root <path> The root directory of the project. Default is "process.cwd()".
|
|
246
|
+
--port <port> The port to run the server on. Default is 4173.
|
|
247
|
+
--open Open the browser. Default is true.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Connect Studio
|
|
251
|
+
|
|
252
|
+
```
|
|
253
|
+
Command Overview:
|
|
254
|
+
The connect command starts the Connect Studio, a development environment for building
|
|
255
|
+
and testing Powerhouse applications. It provides a visual interface for working with
|
|
256
|
+
your project.
|
|
257
|
+
|
|
258
|
+
This command:
|
|
259
|
+
1. Starts a local Connect Studio server
|
|
260
|
+
2. Provides a web interface for development
|
|
261
|
+
3. Allows you to interact with your project components
|
|
262
|
+
4. Supports various configuration options for customization
|
|
263
|
+
|
|
264
|
+
Options:
|
|
265
|
+
-p, --port <port> Port to run the server on. Default is 3000.
|
|
266
|
+
|
|
267
|
+
-h, --host Expose the server to the network. By default, the server
|
|
268
|
+
only accepts connections from localhost.
|
|
269
|
+
|
|
270
|
+
--https Enable HTTPS for secure connections. You may need to provide
|
|
271
|
+
certificate files for this option to work properly.
|
|
272
|
+
|
|
273
|
+
--open Automatically open the browser window after starting the server.
|
|
274
|
+
|
|
275
|
+
--config-file <path> Path to the powerhouse.config.js file. This allows you to
|
|
276
|
+
customize the behavior of Connect Studio.
|
|
277
|
+
|
|
278
|
+
Examples:
|
|
279
|
+
$ ph connect # Start Connect Studio on default port 3000
|
|
280
|
+
$ ph connect -p 8080 # Start on port 8080
|
|
281
|
+
$ ph connect -h # Expose to network (not just localhost)
|
|
282
|
+
$ ph connect --https # Enable HTTPS
|
|
283
|
+
$ ph connect --open # Open browser automatically
|
|
284
|
+
$ ph connect --config-file custom.config.js # Use custom configuration
|
|
285
|
+
$ ph connect -p 8080 --open # Start on port 8080 and open browser
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
## Dev
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
Command Overview:
|
|
292
|
+
The dev command sets up a development environment for working with Powerhouse projects.
|
|
293
|
+
It starts a local development server with a Switchboard, enabling real-time document
|
|
294
|
+
model editing and processing.
|
|
295
|
+
|
|
296
|
+
This command:
|
|
297
|
+
1. Starts a local development server
|
|
298
|
+
2. Sets up a Switchboard for document processing
|
|
299
|
+
3. Enables real-time updates and code generation
|
|
300
|
+
4. Configures necessary services for development
|
|
301
|
+
|
|
302
|
+
Options:
|
|
303
|
+
--generate Generate code automatically when document models are updated.
|
|
304
|
+
This keeps your code in sync with model changes.
|
|
305
|
+
|
|
306
|
+
--switchboard-port <port> Specify the port to use for the Switchboard service.
|
|
307
|
+
The Switchboard handles document processing and communication.
|
|
308
|
+
|
|
309
|
+
--https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
|
|
310
|
+
|
|
311
|
+
--https-cert-file <path> Path to the SSL certificate file if using HTTPS.
|
|
312
|
+
|
|
313
|
+
--config-file <path> Path to the powerhouse.config.js file. This allows you to
|
|
314
|
+
customize the behavior of the development environment.
|
|
315
|
+
|
|
316
|
+
-w, --watch Watch for local changes to document models and processors,
|
|
317
|
+
and automatically update the Switchboard accordingly.
|
|
318
|
+
|
|
319
|
+
Examples:
|
|
320
|
+
$ ph dev # Start dev environment with defaults
|
|
321
|
+
$ ph dev --generate # Auto-generate code on model changes
|
|
322
|
+
$ ph dev --switchboard-port 5000 # Use custom port for Switchboard
|
|
323
|
+
$ ph dev --config-file custom.powerhouse.config.js # Use custom configuration
|
|
324
|
+
$ ph dev --watch # Watch for changes and auto-update
|
|
325
|
+
$ ph dev --https-key-file key.pem --https-cert-file cert.pem # Use HTTPS
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
## Generate
|
|
329
|
+
|
|
330
|
+
```
|
|
331
|
+
Command Overview:
|
|
332
|
+
The generate command creates code from document models. It helps you build editors,
|
|
333
|
+
processors, and other components based on your document model files.
|
|
334
|
+
|
|
335
|
+
This command:
|
|
336
|
+
1. Reads document model definitions
|
|
337
|
+
2. Generates code for specified components (editors, processors, etc.)
|
|
338
|
+
3. Supports customization of output and generation options
|
|
339
|
+
4. Can watch files for changes and regenerate code automatically
|
|
340
|
+
|
|
341
|
+
Arguments:
|
|
342
|
+
[document-model-file] Optional. Path to the document model file to generate code from.
|
|
343
|
+
If not provided, the command will look for document models in
|
|
344
|
+
the default location.
|
|
345
|
+
|
|
346
|
+
Options:
|
|
347
|
+
-i, --interactive Run the command in interactive mode, which will guide you
|
|
348
|
+
through the generation process with prompts and options.
|
|
349
|
+
|
|
350
|
+
--editors <path> Path to the directory where editors should be generated or found.
|
|
351
|
+
|
|
352
|
+
-e, --editor <name> Name of the editor to generate or use.
|
|
353
|
+
|
|
354
|
+
--file <path> Specific file path to the document model.
|
|
355
|
+
|
|
356
|
+
--processors <path> Path to the directory where processors should be generated or found.
|
|
357
|
+
|
|
358
|
+
-p, --processor <name> Name of the processor to generate.
|
|
359
|
+
|
|
360
|
+
--processor-type <type> Type of processor to generate.
|
|
361
|
+
|
|
362
|
+
-s, --subgraph <name> Name of the subgraph to use or create.
|
|
363
|
+
|
|
364
|
+
--document-models <path> Path to the document models directory.
|
|
365
|
+
|
|
366
|
+
--document-types <types> Document types supported by the editor, in the format
|
|
367
|
+
'namespace/type' (e.g., 'powerhouse/todo').
|
|
368
|
+
|
|
369
|
+
-is, --import-script <name> Name of the import script to generate.
|
|
370
|
+
|
|
371
|
+
-sf, --skip-format Skip formatting the generated code.
|
|
372
|
+
|
|
373
|
+
-w, --watch Watch for changes in the document model and regenerate code
|
|
374
|
+
when changes are detected.
|
|
375
|
+
|
|
376
|
+
-d, --drive-editor <name> Generate a drive editor with the specified name.
|
|
377
|
+
|
|
378
|
+
Examples:
|
|
379
|
+
$ ph generate # Generate code using defaults
|
|
380
|
+
$ ph generate my-document-model.zip # Generate from a specific model zip file
|
|
381
|
+
$ ph generate -i # Run in interactive mode
|
|
382
|
+
$ ph generate --editor ToDoList --document-types powerhouse/todo # Generate a ToDoList editor for todo documents
|
|
383
|
+
$ ph generate -p MyProcessor # Generate a specific processor
|
|
384
|
+
$ ph generate --watch # Generate and watch for changes
|
|
385
|
+
$ ph generate --drive-editor custom-drive-explorer # Generate a custom drive editor
|
|
386
|
+
$ ph generate -s MySubgraph # Generate with a specific subgraph
|
|
387
|
+
$ ph generate --skip-format # Generate without formatting
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
## Inspect
|
|
391
|
+
|
|
392
|
+
```
|
|
393
|
+
Command Overview:
|
|
394
|
+
The inspect command examines and provides detailed information about a Powerhouse package.
|
|
395
|
+
It helps you understand the structure, dependencies, and configuration of packages in
|
|
396
|
+
your project.
|
|
397
|
+
|
|
398
|
+
This command:
|
|
399
|
+
1. Analyzes the specified package
|
|
400
|
+
2. Retrieves detailed information about its structure and configuration
|
|
401
|
+
3. Displays package metadata, dependencies, and other relevant information
|
|
402
|
+
4. Helps troubleshoot package-related issues
|
|
403
|
+
|
|
404
|
+
Arguments:
|
|
405
|
+
<packageName> Required. The name of the package to inspect. This should be
|
|
406
|
+
the name of a Powerhouse package or component.
|
|
407
|
+
|
|
408
|
+
Options:
|
|
409
|
+
--debug Show additional logs during the inspection process. This is
|
|
410
|
+
useful for troubleshooting or getting more detailed information
|
|
411
|
+
about how the inspection is performed.
|
|
412
|
+
|
|
413
|
+
Examples:
|
|
414
|
+
$ ph inspect @powerhousedao/core # Inspect the core package
|
|
415
|
+
$ ph inspect @powerhousedao/document-model # Inspect the document-model package
|
|
416
|
+
$ ph inspect my-custom-component # Inspect a custom component
|
|
417
|
+
$ ph inspect @powerhousedao/editor --debug # Inspect with detailed logs
|
|
418
|
+
|
|
419
|
+
Aliases:
|
|
420
|
+
$ ph is # Shorthand for inspect
|
|
421
|
+
|
|
422
|
+
Notes:
|
|
423
|
+
- This command is useful for debugging and understanding package configurations
|
|
424
|
+
- Information displayed includes package structure, dependencies, and metadata
|
|
425
|
+
- The command requires the package to be installed in your project
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
## Install
|
|
429
|
+
|
|
430
|
+
```
|
|
431
|
+
Command Overview:
|
|
432
|
+
The install command adds Powerhouse dependencies to your project. It handles installation
|
|
433
|
+
of packages, updates configuration files, and ensures proper setup of dependencies.
|
|
434
|
+
|
|
435
|
+
This command:
|
|
436
|
+
1. Installs specified Powerhouse dependencies using your package manager
|
|
437
|
+
2. Updates powerhouse.config.json to include the new dependencies
|
|
438
|
+
3. Supports various installation options and configurations
|
|
439
|
+
4. Works with npm, yarn, pnpm, and bun package managers
|
|
440
|
+
|
|
441
|
+
Arguments:
|
|
442
|
+
[dependencies...] Names of the dependencies to install. You can provide multiple
|
|
443
|
+
dependency names separated by spaces.
|
|
444
|
+
|
|
445
|
+
Options:
|
|
446
|
+
-g, --global Install the dependencies globally rather than in the current project.
|
|
447
|
+
|
|
448
|
+
--debug Show additional logs during the installation process for troubleshooting.
|
|
449
|
+
|
|
450
|
+
-w, --workspace Install the dependencies in the workspace (use this option for monorepos).
|
|
451
|
+
This ensures packages are installed with proper workspace configuration.
|
|
452
|
+
|
|
453
|
+
--package-manager <pm> Force a specific package manager to use. Supported values are:
|
|
454
|
+
"npm", "yarn", "pnpm", "bun". If not specified, the command will
|
|
455
|
+
detect the appropriate package manager from lockfiles.
|
|
456
|
+
|
|
457
|
+
Examples:
|
|
458
|
+
$ ph install @powerhousedao/core # Install a single dependency
|
|
459
|
+
$ ph install @powerhousedao/core @powerhousedao/utils # Install multiple dependencies
|
|
460
|
+
$ ph install @powerhousedao/cli -g # Install globally
|
|
461
|
+
$ ph install @powerhousedao/document-model -w # Install in workspace (monorepo)
|
|
462
|
+
$ ph install @powerhousedao/core --package-manager yarn # Force using yarn
|
|
463
|
+
$ ph install @powerhousedao/editor --debug # Show verbose logs during installation
|
|
464
|
+
|
|
465
|
+
Aliases:
|
|
466
|
+
$ ph add # Alias for install
|
|
467
|
+
$ ph i # Shorthand for install
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
## List
|
|
471
|
+
|
|
472
|
+
```
|
|
473
|
+
Command Overview:
|
|
474
|
+
The list command displays information about installed Powerhouse packages in your project.
|
|
475
|
+
It reads the powerhouse.config.json file and shows the packages that are currently installed.
|
|
476
|
+
|
|
477
|
+
This command:
|
|
478
|
+
1. Examines your project configuration
|
|
479
|
+
2. Lists all installed Powerhouse packages
|
|
480
|
+
3. Provides a clear overview of your project's dependencies
|
|
481
|
+
4. Helps you manage and track your Powerhouse components
|
|
482
|
+
|
|
483
|
+
Options:
|
|
484
|
+
--debug Show additional logs during the listing process. This provides
|
|
485
|
+
more detailed information about the command execution and can
|
|
486
|
+
be helpful for troubleshooting.
|
|
487
|
+
|
|
488
|
+
Examples:
|
|
489
|
+
$ ph list # List all installed packages
|
|
490
|
+
$ ph list --debug # List packages with detailed debug information
|
|
491
|
+
|
|
492
|
+
Aliases:
|
|
493
|
+
$ ph l # Shorthand for list
|
|
494
|
+
|
|
495
|
+
Notes:
|
|
496
|
+
- The command reads from powerhouse.config.json in your project root
|
|
497
|
+
- If no packages are found, the command will inform you that no packages are installed
|
|
498
|
+
- Each package is displayed by its package name
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
## Reactor
|
|
502
|
+
|
|
503
|
+
```
|
|
504
|
+
Command Overview:
|
|
505
|
+
The reactor command starts a local Switchboard instance,
|
|
506
|
+
which acts as the document processing engine for Powerhouse projects. It provides
|
|
507
|
+
the infrastructure for document models, processors, and real-time updates.
|
|
508
|
+
|
|
509
|
+
This command:
|
|
510
|
+
1. Starts a local reactor server
|
|
511
|
+
2. Loads document models and processors
|
|
512
|
+
3. Provides an API for document operations
|
|
513
|
+
4. Supports real-time updates and code generation
|
|
514
|
+
|
|
515
|
+
Options:
|
|
516
|
+
--port <PORT> Port to host the API. Default is 4001.
|
|
517
|
+
|
|
518
|
+
--config-file <path> Path to the powerhouse.config.js file. Default is
|
|
519
|
+
'./powerhouse.config.json'. This configures the reactor behavior.
|
|
520
|
+
|
|
521
|
+
--generate Generate code automatically when document models are updated.
|
|
522
|
+
|
|
523
|
+
--db-path <DB_PATH> Path to the database for storing document data.
|
|
524
|
+
|
|
525
|
+
--https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
|
|
526
|
+
|
|
527
|
+
--https-cert-file <path> Path to the SSL certificate file if using HTTPS.
|
|
528
|
+
|
|
529
|
+
-w, --watch Watch for local changes to document models and processors,
|
|
530
|
+
and automatically update the reactor accordingly.
|
|
531
|
+
|
|
532
|
+
--packages <pkg...> List of packages to be loaded. If defined, packages specified
|
|
533
|
+
in the config file are ignored.
|
|
534
|
+
|
|
535
|
+
Examples:
|
|
536
|
+
$ ph reactor # Start reactor with default settings
|
|
537
|
+
$ ph reactor --port 5000 # Use custom port 5000
|
|
538
|
+
$ ph reactor --generate # Enable auto code generation
|
|
539
|
+
$ ph reactor --watch # Watch for local file changes
|
|
540
|
+
$ ph reactor --config-file custom.json # Use custom configuration file
|
|
541
|
+
$ ph reactor --packages pkg1 pkg2 # Load specific packages
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
## Service
|
|
545
|
+
|
|
546
|
+
```
|
|
547
|
+
Command Overview:
|
|
548
|
+
The service command manages Powerhouse services, allowing you to start, stop, check status,
|
|
549
|
+
and more. It provides a centralized way to control the lifecycle of services in your project.
|
|
550
|
+
|
|
551
|
+
This command:
|
|
552
|
+
1. Controls service lifecycle (start, stop, status, etc.)
|
|
553
|
+
2. Manages multiple services from a single interface
|
|
554
|
+
3. Provides detailed information about running services
|
|
555
|
+
4. Uses PM2 under the hood for process management
|
|
556
|
+
|
|
557
|
+
Arguments:
|
|
558
|
+
<action> The action to perform. Available actions:
|
|
559
|
+
- start: Launch the specified service
|
|
560
|
+
- stop: Terminate the specified service
|
|
561
|
+
- status: Check the current status of services
|
|
562
|
+
- list: List all managed services (default)
|
|
563
|
+
- startup: Configure services to start on system boot
|
|
564
|
+
- unstartup: Remove services from system startup
|
|
565
|
+
|
|
566
|
+
[service] Optional. The service to act upon. Available services:
|
|
567
|
+
- switchboard: The document processing engine
|
|
568
|
+
- connect: The Connect Studio interface
|
|
569
|
+
- all: Act on all services (default)
|
|
570
|
+
|
|
571
|
+
Examples:
|
|
572
|
+
$ ph service # List all services (same as 'ph service list all')
|
|
573
|
+
$ ph service start switchboard # Start the Switchboard service
|
|
574
|
+
$ ph service stop connect # Stop the Connect service
|
|
575
|
+
$ ph service start all # Start all services
|
|
576
|
+
$ ph service status # Check status of all services
|
|
577
|
+
$ ph service startup # Configure services to start on system boot
|
|
578
|
+
$ ph service unstartup # Remove services from system startup
|
|
579
|
+
|
|
580
|
+
Notes:
|
|
581
|
+
- Services are managed using PM2, a process manager for Node.js applications
|
|
582
|
+
- The 'status' action shows uptime, memory usage, CPU usage, and other metrics
|
|
583
|
+
- The 'list' action is the default when no action is specified
|
|
584
|
+
- The 'all' service is the default when no service is specified
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
## Switchboard
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
Command Overview:
|
|
591
|
+
The switchboard command starts a local Switchboard instance, which acts as the document
|
|
592
|
+
processing engine for Powerhouse projects. It provides the infrastructure for document
|
|
593
|
+
models, processors, and real-time updates.
|
|
594
|
+
|
|
595
|
+
This command:
|
|
596
|
+
1. Starts a local switchboard server
|
|
597
|
+
2. Loads document models and processors
|
|
598
|
+
3. Provides an API for document operations
|
|
599
|
+
4. Enables real-time document processing
|
|
600
|
+
|
|
601
|
+
Options:
|
|
602
|
+
--port <PORT> Port to host the API. Default is 4001.
|
|
603
|
+
|
|
604
|
+
--config-file <path> Path to the powerhouse.config.js file. Default is
|
|
605
|
+
'./powerhouse.config.json'. This configures the switchboard behavior.
|
|
606
|
+
|
|
607
|
+
--db-path <DB_PATH> Path to the database for storing document data.
|
|
608
|
+
|
|
609
|
+
--https-key-file <path> Path to the SSL key file if using HTTPS for secure connections.
|
|
610
|
+
|
|
611
|
+
--https-cert-file <path> Path to the SSL certificate file if using HTTPS.
|
|
612
|
+
|
|
613
|
+
--packages <pkg...> List of packages to be loaded. If defined, packages specified
|
|
614
|
+
in the config file are ignored.
|
|
615
|
+
|
|
616
|
+
--base-path <path> Base path for the API endpoints. Sets the BASE_PATH environment
|
|
617
|
+
variable used by the server to prefix all routes.
|
|
618
|
+
|
|
619
|
+
Examples:
|
|
620
|
+
$ ph switchboard # Start switchboard with default settings
|
|
621
|
+
$ ph switchboard --port 5000 # Use custom port 5000
|
|
622
|
+
$ ph switchboard --config-file custom.json # Use custom configuration file
|
|
623
|
+
$ ph switchboard --packages pkg1 pkg2 # Load specific packages
|
|
624
|
+
$ ph switchboard --base-path /switchboard # Set API base path to /switchboard
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
## Uninstall
|
|
628
|
+
|
|
629
|
+
```
|
|
630
|
+
Command Overview:
|
|
631
|
+
The uninstall command removes Powerhouse dependencies from your project. It handles the
|
|
632
|
+
removal of packages, updates configuration files, and ensures proper cleanup.
|
|
633
|
+
|
|
634
|
+
This command:
|
|
635
|
+
1. Uninstalls specified Powerhouse dependencies using your package manager
|
|
636
|
+
2. Updates powerhouse.config.json to remove the dependencies
|
|
637
|
+
3. Supports various uninstallation options and configurations
|
|
638
|
+
4. Works with npm, yarn, pnpm, and bun package managers
|
|
639
|
+
|
|
640
|
+
Arguments:
|
|
641
|
+
[dependencies...] Names of the dependencies to uninstall. You can provide multiple
|
|
642
|
+
dependency names separated by spaces.
|
|
643
|
+
|
|
644
|
+
Options:
|
|
645
|
+
-g, --global Uninstall the dependencies from the global installation
|
|
646
|
+
rather than from the current project.
|
|
647
|
+
|
|
648
|
+
--debug Show additional logs during the uninstallation process
|
|
649
|
+
for troubleshooting and to trace the command execution.
|
|
650
|
+
|
|
651
|
+
-w, --workspace Uninstall the dependencies from the workspace (use this option
|
|
652
|
+
for monorepos). This ensures packages are removed while
|
|
653
|
+
respecting workspace configurations.
|
|
654
|
+
|
|
655
|
+
--package-manager <pm> Force a specific package manager to use. Supported values are:
|
|
656
|
+
"npm", "yarn", "pnpm", "bun". If not specified, the command will
|
|
657
|
+
detect the appropriate package manager from lockfiles.
|
|
658
|
+
|
|
659
|
+
Examples:
|
|
660
|
+
$ ph uninstall @powerhousedao/core # Uninstall a single dependency
|
|
661
|
+
$ ph uninstall @powerhousedao/core @powerhousedao/utils # Uninstall multiple dependencies
|
|
662
|
+
$ ph uninstall @powerhousedao/cli -g # Uninstall globally
|
|
663
|
+
$ ph uninstall @powerhousedao/document-model -w # Uninstall from workspace (monorepo)
|
|
664
|
+
$ ph uninstall @powerhousedao/core --package-manager yarn # Force using yarn
|
|
665
|
+
$ ph uninstall @powerhousedao/editor --debug # Show verbose logs during uninstallation
|
|
666
|
+
|
|
667
|
+
Aliases:
|
|
668
|
+
$ ph remove # Alias for uninstall
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
## Version
|
|
672
|
+
|
|
673
|
+
```
|
|
674
|
+
Command Overview:
|
|
675
|
+
The version command displays the current version of the Powerhouse CLI tool.
|
|
676
|
+
It helps you track which version you're using and ensure compatibility.
|
|
677
|
+
|
|
678
|
+
This command:
|
|
679
|
+
1. Retrieves version information from package.json
|
|
680
|
+
2. Displays the version number of the CLI tool
|
|
681
|
+
3. Can be used to verify successful installation or updates
|
|
682
|
+
|
|
683
|
+
Options:
|
|
684
|
+
--debug Show additional logs during version retrieval. This provides
|
|
685
|
+
more detailed information about how the version is determined,
|
|
686
|
+
which can be helpful for troubleshooting.
|
|
687
|
+
|
|
688
|
+
Examples:
|
|
689
|
+
$ ph version # Display the CLI version
|
|
690
|
+
$ ph version --debug # Show version with debug information
|
|
691
|
+
|
|
692
|
+
Aliases:
|
|
693
|
+
$ ph v # Shorthand for version
|
|
694
|
+
|
|
695
|
+
Notes:
|
|
696
|
+
- The version follows semantic versioning (MAJOR.MINOR.PATCH)
|
|
697
|
+
- Using the correct CLI version is important for compatibility with your project
|
|
698
|
+
- Version information is read from the package.json file of the CLI
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
---
|
|
702
|
+
|
|
703
|
+
*This document was automatically generated from the help text in the codebase.*\n<!-- AUTO-GENERATED-CLI-COMMANDS-END -->
|
|
704
|
+
|
|
705
|
+
<details>
|
|
706
|
+
<summary> How to make use of different branches? </summary>
|
|
707
|
+
|
|
708
|
+
When installing or using the Powerhouse CLI commands you are able to make use of the dev & staging branches. These branches contain more experimental features then the latest stable release the PH CLI uses by default. They can be used to get access to a bugfix or features under development.
|
|
709
|
+
|
|
710
|
+
| Command | Description |
|
|
711
|
+
|---------|-------------|
|
|
712
|
+
| **pnpm install -g ph-cmd** | Install latest stable version |
|
|
713
|
+
| **pnpm install -g ph-cmd@dev** | Install development version |
|
|
714
|
+
| **pnpm install -g ph-cmd@staging** | Install staging version |
|
|
715
|
+
| **ph init** | Use latest stable version of the boilerplate |
|
|
716
|
+
| **ph init --dev** | Use development version of the boilerplate |
|
|
717
|
+
| **ph init --staging** | Use staging version of the boilerplate |
|
|
718
|
+
| **ph use** | Switch all dependencies to latest production versions |
|
|
719
|
+
| **ph use dev** | Switch all dependencies to development versions |
|
|
720
|
+
| **ph use prod** | Switch all dependencies to production versions |
|
|
721
|
+
|
|
722
|
+
Please be aware that these versions can contain bugs and experimental features that aren't fully tested.
|
|
723
|
+
</details>
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
the ph connect command now uses three subcommands:
|
|
727
|
+
|
|
728
|
+
studio (default) — runs connect studio. since this is the default argument, running ph connect still has the same behavior as before,
|
|
729
|
+
|
|
730
|
+
build — bundles the project's local and external model/editor code and injects the js/css into the already-built connect bundle for deployment,
|
|
731
|
+
|
|
732
|
+
preview — runs the vite preview server with the output of build for testing purposes,
|
|
733
|
+
|
|
734
|
+
running ph connect --help now lists the sub-commands. Running ph connect studio --help now shows the help for the studio command, likewise for the other new commands.
|
|
735
|
+
|
|
736
|
+
This approach avoids redundant build/compilation which is great for minimizing server resource use. The only compilation that runs is the esbuild of the project code (does not need tsc as that is handled separately) and then tailwind for the local project styles. The whole thing takes less than a second, albeit on my macbook.
|
|
737
|
+
|
|
738
|
+
This should just work with the current boilerplate since these are just new arguments to the existing ph-cli connect command.
|