Skip to content

Steps for Running the Twindle CLI Application

Mira-Alf edited this page Nov 2, 2020 · 12 revisions

Steps for running the Twindle Command Line Interface Application in Node.JS

  • Step 1: Twitter Developer Access: Please read Wiki Page for Twitter API Access for getting access from Twitter. Must make sure that the Bearer token is successfully copied over from Twitter.

  • Step 2: Create a .env file under twindle-cli folder: In the twindle-cli folder, one can see an example.env file. Create a new .env file and copy the example file's contents over and paste the bearer token from the first step. Make sure that the new .env file is not committed to git since it contains your bearer token - it is your responsibility to keep it safe.

  • Step 3: Install Node dependencies from package.json: The package.json file under twindle-cli folder contains an attribute called dependencies. Install those dependencies using npm command:

npm install


  • Step 4: Running the application: Once the bearer token is replaced and the dependencies are installed, run the application using the following command:

node index -i <tweet_id> -f <file_format> -o <file_name_without_extension>


Currently the output file is placed in the same twindle-cli folder.

This documentation may be updated if there are any further code changes. Please visit this page to check for modifications if you run into any issues.