Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ export const handleArgs = (args: string[]) => {
type: 'string',
description: 'URL to non-default KAS instance (https://mykas.net)',
})
.option('platformUrl', {
group: 'Server Endpoints:',
type: 'string',
description: 'URL to the platform (https://myplatform.net)',
})
.option('oidcEndpoint', {
group: 'Server Endpoints:',
type: 'string',
Expand Down Expand Up @@ -585,6 +590,7 @@ export const handleArgs = (args: string[]) => {
async (argv) => {
log('DEBUG', 'Running inspect command');
const ct = new OpenTDF({
platformUrl: argv.platformUrl,
authProvider: new InvalidAuthProvider(),
});
try {
Expand Down Expand Up @@ -623,6 +629,7 @@ export const handleArgs = (args: string[]) => {
const authProvider = await processAuth(argv);
log('DEBUG', `Initialized auth provider ${JSON.stringify(authProvider)}`);
const client = new OpenTDF({
platformUrl: argv.platformUrl,
authProvider,
defaultCreateOptions: {
defaultKASEndpoint: argv.kasEndpoint,
Expand Down Expand Up @@ -685,6 +692,7 @@ export const handleArgs = (args: string[]) => {
log('DEBUG', `Initialized auth provider ${JSON.stringify(authProvider)}`);

const client = new OpenTDF({
platformUrl: argv.platformUrl,
authProvider,
defaultCreateOptions: {
defaultKASEndpoint: argv.kasEndpoint,
Expand Down
Loading