Open rajdip-b opened 3 days ago
/attempt
Assigned the issue to @Meeran-Tofiq!
Hello @rajdip-b, I hope you're doing well.
Regarding this issue I've had a lot of difficulty in setting up the CLI to make it work for development. First, it said there were issues with it finding @keyshade/api-client
. I had to do run a pnpm run build
command in packages/api-client
to make it work. This was not mentioned in the docs. Then another error came up, which also needed the same command to be ran in packages/secret-scan
for @keyshade/secret-scan
. This I also could not find in the docs for setting up the cli for development.
Currently, another problem has occurred that I haven't been able to solve:
It says index.js doesn't exist in keyshade/apps/cli/dist/index.js
. But there is an index.js file in keyshade/apps/cli/dist/src/index.js
:
I'm leaving this comment for a few main reasons:
First, I may have missed where it is documented to fully set up the cli for development. I have only come across this one: If I have missed it, I'd appreciate being pointed to the correct one.
If however I haven't missed it, I think it would make sense to create a few issues on the github repo to address these problems.
I'd also appreciate being guided, if there is no other documentation option, on how to actually set it up for development.
Thank you very much.
Hey man, we are really sorry about this trouble you faced. I have to admit, it was a very tough job for us to set up multiple package dependency. With the scripts changing in nearly every push, it was even more difficult to manage. But in #451, I have worked on all the fixes. I intend to merge it by tonight. Expect the CLI docs to be updated aswell.
Again, sorry about the inconvenience.
Oh, I see. No worries man you guys are doing an amazing job, don't sweat it. I enjoy working on open-source and I understand these are some issues that come with it. Seriously don't sweat it. Thanks for the kind and timely response as always! :)
and looking forward to see the new docs for it XD
Hey! Gladly, I could make all the updates right away. Please have a read and let me know if you were able to get the CLI up and running following the docs.
After following the updated docs, I still get the following issue that I don't understand:
It says index.js
doesn't exist in keyshade/apps/cli/dist/index.js
. But there is an index.js
file in keyshade/apps/cli/dist/src/index.js
:
Edited to add the command I wrote:
pnpm dev:cli -- keyshade workspace list
Okay, for one, you command is a bit wrong. It will be pnpm dev:cli -- workspace list
. Secondly, it's odd what you are facing. I'll try replicate the same on my device.
EDIT: You can join our discord channel to discuss this better imo.
Okay, I just tried deleting my build folder, and running the command. Seems like it worked. Perhaps, you can try running pnpm build:cli
and running it again?
Description
We would like to perform the following operations for workspace roles using our CLI:
keyshade workspace role list <workspaceSlug>
)keyshade workspace role get <workspaceRoleSlug>
)keyshade workspace role delete <workspaceRoleSlug>
)keyshade workspace role update <workspaceRoleSlugs> [refer postman for options]
)Solution
role.workspace.ts
undersrc/commands/workspace
command.interface.ts
and name itWorkspaceRoleCommand
workspace.command.ts
src/commands/workspace/role
.workspaceRoleController
underControllerInstance
to make the API calls.