my-random-thoughts / psbookstack Goto Github PK
View Code? Open in Web Editor NEWPowerShell Module For Managing BookStack
License: MIT License
PowerShell Module For Managing BookStack
License: MIT License
Hello,
First, thanks for creating the BookStack PowerShell Module. I think this is a fantastic way to create exports/backups of anyone's BookStack instance.
I'm creating a PowerShell script to export pages into a directory that has the same structure as my BookStack instance. For example, MyPage located in
Unfortunately, through the bs cmdlets I can't pull the Shelf information and the best I can do is
Is it possible to add the Shelf ID to the Get-BsBook, Get-BsChapter, and Get-BsPage cmdlets or am I missing something?
Example of a Get-BsBook
id : 2
name : Book
slug : book
description :
created_at : 2023-06-25T02:56:56.000000Z
updated_at : 2023-06-25T02:56:56.000000Z
created_by : 1
updated_by : 1
owned_by : 1
Exmple of a Get-BsChapter
id : 1
book_id : 2
slug : chapter
name : Chapter
description :
priority : 3
created_at : 2023-06-25T02:57:29.000000Z
updated_at : 2023-07-14T11:29:01.000000Z
created_by : 1
updated_by : 1
owned_by : 1
book_slug : home-lab
Example of a Get-BsPage
id : 2
book_id : 2
chapter_id : 1
name : Page
slug : page
priority : 3
created_at : 2023-06-25T02:57:37.000000Z
updated_at : 2023-07-14T11:28:45.000000Z
created_by : 1
updated_by : 1
draft : False
revision_count : 1
template : False
owned_by : 1
editor :
book_slug : home-lab
Thanks for any help/advice!
-a70coupe
Hi,
nice work with that PowerShell module.
I found an issue at the Export-BsPage.ps1 cmdlet.
Invoke-PageStackQuery should be Invoke-BookStackQuery.
psBookStack/public/Export-BsPage.ps1
Line 44 in 5aecc39
cheers
Richard
Hi,
I'm new to power shell and I'm trying to get your module to run however when I enter the 'Connect-BookStackAPI -Url '' -Credential ' command with my domain name inserted, I get:
At line:1 char:62
~
The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported
Do I need to replace PSCredential with a value?
Thank you,
Andrew.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.