Launch DocsHub in 3 minutes πŸƒβ€β™€οΈ

Follow these quick steps to get DocsHub up and running in your environment in just 3 minutes.

2024-12-18
2 min read
Roberto

Follow these quick steps to get Docs Hub up and running in your environment in just 3 minutes, in a blank directory.

Startup DocsHub

Use the docshub CLI to initialize your working directory or workspace.

npx docshub init

After initializing the workspace, run the following command to start the DocsHub in interactive mode.

npx docshub interactive

The application should be available at http://localhost:4321.

Create new document

Use the CLI again to create a new documentation entry. Fill in all the fields, and the document will be saved in the /docs folder.

npx docshub create

Edit the document as you like, and you’re all set! ✨

Prepare for production

Once you’re done editing your document, you’re ready to prepare DocsHub for production. Use the CLI again to build your site for production:

npx docshub standard

The application should be available at http://localhost:4321.

And that’s it! Now that you have the docker images downloaded locally, repeating the process will take you less than 3 minutes.

Happy coding! πŸŽ‰