Noob question getting started without Ui

I have dumb questions. I’m looking to create my own private pool with whitelist address without the UI. I’m confused as to where to get started exactly.
In the docs, it shows create pool only with UI, but how do I start without Ui? I tried using balpy example, it returns poolId and couldn’t reach to step 4 on the default example.

In the js sdk, it talks about swaps but doesn’t talk about creating a pool or anything. I also can’t seem to find what function does that.
In the docs, it also shows functions in solidity, not sure what to do with that info.

I’m confused. If I want to use js sdk, where do I start? Is there a video tutorial or something somewhere? I’m missing an understanding somewhere I think.