├── README.md
├── codecourse
├── composer.json
└── docker-compose.yml
/README.md:
--------------------------------------------------------------------------------
1 | ### The official Codecourse CLI
2 |
3 | Access codecourse.com features directly from the command line.
4 |
5 | ___
6 |
7 | ## Current features
8 |
9 | * `download:course [slug]` Download all videos for a course
10 |
11 | ## Requirements
12 |
13 | * Composer (https://getcomposer.org/)
14 | * PHP 7.1.2 or higher
15 |
16 | ## Installation (global)
17 |
18 |
macOS
19 |
20 | ```
21 | composer global require codecourse/cli
22 | ```
23 |
24 | Make sure you add Composer's global vendor/bin folder to your `$PATH`. You can do this by adding `PATH=$PATH:~/.composer/vendor/bin` to your `~/.bash_profile` file and run:
25 |
26 | ```
27 | # source ~/.bash_profile
28 | ```
29 |
30 | ## Installation (standalone)
31 |
32 | Download the `codecourse` binary from this repository and run:
33 |
34 | ```
35 | # cd /path/to/downloaded/binary
36 | # php codecourse
37 | ```
38 |
39 | ## Installation (docker)
40 |
41 | Download the `codecourse` binary from this repository and run:
42 |
43 | ```
44 | $ cd /path/to/downloaded/binary
45 | $ docker run -it --rm --name codecourse-app -v "$PWD":/app -w /app php:7.3-cli bash
46 | root@container-id:/app# php codecourse
47 | ```
48 |
49 | ## Installation (docker-compose)
50 |
51 | Download the `codecourse` binary and `docker-compose.yml` file from this repository and run:
52 |
53 | ```
54 | $ cd /path/to/downloaded/binary_and_docker-compose_file
55 | $ docker-compose run app bash
56 | root@container-id:/app# php codecourse
57 | ```
58 |
59 | ## Known issues
60 |
61 | * The Codecourse CLI has not been tested on Windows platforms yet.
62 |
63 | ## Usage
64 |
65 | Once installed, run `codecourse` for a list of available commands.
66 |
67 | ## Support
68 |
69 | If you're having trouble setting up the CLI, email hello@codecourse.com or alex@codecourse.com
70 |
--------------------------------------------------------------------------------
/codecourse:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codecourse/cli/9db5d575a2858553fb961151e40bd4075fd8db57/codecourse
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "codecourse/cli",
3 | "description": "The official Codecourse CLI",
4 | "type": "project",
5 | "authors": [
6 | {
7 | "name": "Alex Garrett-Smith",
8 | "email": "alex@codecourse.com"
9 | }
10 | ],
11 | "require": {
12 | "php": "^7.1.2"
13 | },
14 | "minimum-stability": "stable",
15 | "prefer-stable": true,
16 | "bin": ["codecourse"]
17 | }
18 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 | services:
3 | app:
4 | image: php:7.3-cli
5 | working_dir: /app
6 | volumes:
7 | - ./:/app
8 |
--------------------------------------------------------------------------------