{"id":20307199,"url":"https://github.com/oktadev/okta-node-cli-example","last_synced_at":"2025-04-11T15:06:43.521Z","repository":{"id":44089805,"uuid":"190627377","full_name":"oktadev/okta-node-cli-example","owner":"oktadev","description":"A command-line applications using Node.js","archived":false,"fork":false,"pushed_at":"2022-02-12T11:27:29.000Z","size":307,"stargazers_count":11,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T15:22:43.421Z","etag":null,"topics":["cli-application","javascript","nodejs","pkce"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-06T18:06:00.000Z","updated_at":"2023-08-03T06:26:44.000Z","dependencies_parsed_at":"2022-09-03T08:52:02.013Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-node-cli-example","commit_stats":null,"previous_names":["oktadeveloper/okta-node-cli-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-cli-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-cli-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-cli-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-cli-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-node-cli-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429078,"owners_count":21101782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-application","javascript","nodejs","pkce"],"created_at":"2024-11-14T17:16:41.574Z","updated_at":"2025-04-11T15:06:43.503Z","avatar_url":"https://github.com/oktadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Okta Node.js Command Line Application Example\n\nThis project is the sample CLI application code for the blog post [Build a Command Line Application with Node.js](https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs). This sample app demonstrates using Node.js to build a CLI application that can use PKCE to authenticate with an OAuth 2.0 API. Please read the blog post for more information!\n\nTo use this code, you will need the following:\n\n* A recent version of [Node.js](https://nodejs.org) downloaded and installed\n* A good text editor, such as [Visual Studio Code](https://code.visualstudio.com)\n* A [free Okta developer account](https://developer.okta.com/signup/)\n\nTo successfully run this project you will need to:\n\n1. Clone or download the source code.\n1. Run `npm install` from the command line in the project folder.\n1. Copy `.env.sample` to `.env`\n1. Install the [Okta CLI](https://cli.okta.com) and run `okta register` to sign up for a new account. Use `okta login` if you already have an account.\n1. Run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Native** and use `http://localhost:8080/callback` for the Redirect URI. Set the Logout Redirect URI to `http://localhost:8080`.\n1. Update `.env` with your **Issuer** and application's **Client ID**\n1. Install the CLI app globally using `npm install -g .`\n\nAfter installing the CLI app globally, you will have two commands you can use: `hello` and `pkce-login`.\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-cli-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-node-cli-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-cli-example/lists"}