mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Update README.md
This commit is contained in:
parent
4146c1d673
commit
2cddb61877
1 changed files with 39 additions and 10 deletions
49
README.md
49
README.md
|
@ -426,26 +426,48 @@ cd ~/archivebox/data # IMPORTANT: cd into the directory
|
||||||
# archivebox [subcommand] [--args]
|
# archivebox [subcommand] [--args]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Bare Metal Usage (`pip`/`apt`/`brew`/etc.)
|
##### Bare Metal Usage (`pip`/`apt`/`brew`/etc.)
|
||||||
```bash
|
|
||||||
|
<br/>
|
||||||
|
<details open>
|
||||||
|
<summary><i>Click to expand...</i></summary>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<pre lang="bash"><code style="white-space: pre-line">
|
||||||
archivebox init --setup # safe to run init multiple times (also how you update versions)
|
archivebox init --setup # safe to run init multiple times (also how you update versions)
|
||||||
archivebox version # get archivebox version info and more
|
archivebox version # get archivebox version info and more
|
||||||
archivebox add --depth=1 'https://news.ycombinator.com'
|
archivebox add --depth=1 'https://news.ycombinator.com'
|
||||||
```
|
</code>
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
##### Docker Compose Usage
|
##### Docker Compose Usage
|
||||||
```bash
|
|
||||||
|
<details>
|
||||||
|
<summary><i>Click to expand...</i></summary>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<pre lang="bash"><code style="white-space: pre-line">
|
||||||
# make sure you have `docker-compose.yml` from the Quickstart instructions first
|
# make sure you have `docker-compose.yml` from the Quickstart instructions first
|
||||||
docker compose run archivebox init --setup
|
docker compose run archivebox init --setup
|
||||||
docker compose run archivebox version
|
docker compose run archivebox version
|
||||||
docker compose run archivebox add --depth=1 'https://news.ycombinator.com'
|
docker compose run archivebox add --depth=1 'https://news.ycombinator.com'
|
||||||
```
|
</code></pre>
|
||||||
|
|
||||||
#### Docker Usage
|
</details>
|
||||||
```bash
|
|
||||||
|
##### Docker Usage
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><i>Click to expand...</i></summary>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<pre lang="bash"><code style="white-space: pre-line">
|
||||||
docker run -v $PWD:/data -it archivebox/archivebox init --setup
|
docker run -v $PWD:/data -it archivebox/archivebox init --setup
|
||||||
docker run -v $PWD:/data -it archivebox/archivebox version
|
docker run -v $PWD:/data -it archivebox/archivebox version
|
||||||
```
|
</code></pre>
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
#### Next Steps
|
#### Next Steps
|
||||||
|
|
||||||
|
@ -458,14 +480,21 @@ docker run -v $PWD:/data -it archivebox/archivebox version
|
||||||
> Whether in Docker or not, ArchiveBox commands all work the same way, and can be used in tandem to access the same data directory.
|
> Whether in Docker or not, ArchiveBox commands all work the same way, and can be used in tandem to access the same data directory.
|
||||||
> For example, you can run the Web UI in Docker Compose, and run one-off commands on host with `pip`-installed ArchiveBox or in Docker interchangeably.
|
> For example, you can run the Web UI in Docker Compose, and run one-off commands on host with `pip`-installed ArchiveBox or in Docker interchangeably.
|
||||||
|
|
||||||
```bash
|
<br/>
|
||||||
|
<details>
|
||||||
|
<summary><i>Expand to show example...</i></summary>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<pre lang="bash"><code style="white-space: pre-line">
|
||||||
docker compose up -d # start the Web UI server in the background
|
docker compose up -d # start the Web UI server in the background
|
||||||
docker compose run archivebox add 'https://example.com' # add a test URL to snapshot w/ Docker Compose
|
docker compose run archivebox add 'https://example.com' # add a test URL to snapshot w/ Docker Compose
|
||||||
|
|
||||||
archivebox list 'https://example.com' # fetch it with pip-installed archivebox on the host
|
archivebox list 'https://example.com' # fetch it with pip-installed archivebox on the host
|
||||||
docker compose run archivebox list 'https://example.com' # or w/ Docker Compose
|
docker compose run archivebox list 'https://example.com' # or w/ Docker Compose
|
||||||
docker run -it -v $PWD:/data archivebox/archivebox list 'https://example.com' # or w/ Docker, all equivalent
|
docker run -it -v $PWD:/data archivebox/archivebox list 'https://example.com' # or w/ Docker, all equivalent
|
||||||
```
|
</code></pre>
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
#### 🖥 Web UI Usage
|
#### 🖥 Web UI Usage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue