Search the developer.adobe.com docs. Manage Adobe Developer Console projects, workspaces, APIs, and credentials. Create and test I/O Events registrations and subscriber defined filters. Set up, create, deploy, and troubleshoot App Builder apps.
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
High
Do not use without reviewing
// The CLI persists the token itself. Neither stdout nor stderr needs to be captured.
import { aio } from './lib/run.mjs';
try {
if (process.argv.length !== 2) throw new Error();
const result = aio(['login'], { timeoutMs: 300_000, discardOutput: true });
if (!result.ok) {
console.log(JSON.stringify({
ok: false,
error: result.timedOut ? 'CLI sign-in timed out. Retry the login helper.' : 'CLI sign-in did not complete. Check the browser sign-in and CLI installation, then retry the login helper.',
}));
process.exitCode = 1;
} else {
console.log(JSON.stringify({ ok: true }));
}
} catch {
console.log(JSON.stringify({ ok: false, error: 'Could not run CLI sign-in. This helper does not accept arguments.' }));
process.exitCode = 1;
}