From 3691c4184a482aad38f603188243011e11de834b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 5 Apr 2021 21:15:44 -0400 Subject: [PATCH] update README to use new setup flag for easier init --- README.md | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index d6c3d8ff..e118a25e 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ ArchiveBox is a powerful self-hosted internet archiving solution written in Pyth **🔢  Run ArchiveBox via [Docker Compose (recommended)](#Quickstart), Docker, Apt, Brew, or Pip ([see below](#Quickstart)).** ```bash -apt/brew/pip3 install archivebox +apt/brew/pip3/etc install archivebox -archivebox init # run this in an empty folder +archivebox init --setup # run this in an empty folder archivebox add 'https://example.com' # start adding URLs to archive curl https://example.com/rss.xml | archivebox add # or add via stdin archivebox schedule --every=day https://example.com/rss.xml @@ -46,7 +46,7 @@ archivebox schedule --every=day https://example.com/rss.xml For each URL added, ArchiveBox saves several types of HTML snapshot (wget, Chrome headless, singlefile), a PDF, a screenshot, a WARC archive, any git repositories, images, audio, video, subtitles, article text, [and more...](#output-formats). ```bash -archivebox server --createsuperuser 0.0.0.0:8000 # use the interactive web UI +archivebox server 0.0.0.0:8000 # use the interactive web UI archivebox list 'https://example.com' # use the CLI commands (--help for more) ls ./archive/*/index.json # or browse directly via the filesystem ``` @@ -110,8 +110,8 @@ curl -O 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/docker-c Start the server.

-docker-compose run archivebox server --quick-init
-docker-compose run archivebox manage createsuperuser
+docker-compose run --rm archivebox init --setup
+docker-compose up
 
Open [`http://127.0.0.1:8000`](http://127.0.0.1:8000). @@ -141,11 +141,10 @@ chrome, wget, youtube-dl, git, etc., full-text search w/ sonic, and many other g

 # create a new empty directory and initalize your collection (can be anywhere)
 mkdir ~/archivebox && cd ~/archivebox
-docker run -v $PWD:/data -it archivebox/archivebox init
-docker run -v $PWD:/data -it archivebox/archivebox --version
+docker run -v $PWD:/data -it archivebox/archivebox init --setup
 
 # start the webserver and open the UI (optional)
-docker run -v $PWD:/data -it -p 8000:8000 archivebox/archivebox server --createsuperuser 0.0.0.0:8000
+docker run -v $PWD:/data -p 8000:8000 archivebox/archivebox server 0.0.0.0:8000
 open http://127.0.0.1:8000
 
 # you can also add links and manage your archive via the CLI:
@@ -178,12 +177,10 @@ sudo apt install archivebox
 

 # create a new empty directory and initalize your collection (can be anywhere)
 mkdir ~/archivebox && cd ~/archivebox
-npm install --prefix . 'git+https://github.com/ArchiveBox/ArchiveBox.git'
-archivebox init
-archivebox --version
+archivebox init --setup
 
 # start the webserver and open the web UI (optional)
-archivebox server --createsuperuser 0.0.0.0:8000
+archivebox server 0.0.0.0:8000
 open http://127.0.0.1:8000
 
 # you can also add URLs and manage the archive via the CLI and filesystem:
@@ -222,12 +219,10 @@ brew install archivebox/archivebox/archivebox
 
 # create a new empty directory and initalize your collection (can be anywhere)
 mkdir ~/archivebox && cd ~/archivebox
-npm install --prefix . 'git+https://github.com/ArchiveBox/ArchiveBox.git'
-archivebox init
-archivebox --version
+archivebox init --setup
 
 # start the webserver and open the web UI (optional)
-archivebox server --createsuperuser 0.0.0.0:8000
+archivebox server 0.0.0.0:8000
 open http://127.0.0.1:8000
 
 # you can also add URLs and manage the archive via the CLI and filesystem:
@@ -243,7 +238,7 @@ archivebox help  # to see more options
 
Get ArchiveBox with pip on any platform -First make sure you have Python >= 3.7 installed: https://realpython.com/installing-python/ +First make sure you have [Python >= v3.7](https://realpython.com/installing-python/) and [Node >= v12](https://nodejs.org/en/download/package-manager/) installed.

 # install the archivebox package using pip3
@@ -251,13 +246,11 @@ pip3 install archivebox
 
 # create a new empty directory and initalize your collection (can be anywhere)
 mkdir ~/archivebox && cd ~/archivebox
-npm install --prefix . 'git+https://github.com/ArchiveBox/ArchiveBox.git'
-archivebox init
-archivebox --version
-# Install any missing extras like wget/git/chrome/etc. manually as needed
+archivebox init --setup
+# Install any missing extras like wget/git/ripgrep/etc. manually as needed
 
 # start the webserver and open the web UI (optional)
-archivebox server --createsuperuser 0.0.0.0:8000
+archivebox server 0.0.0.0:8000
 open http://127.0.0.1:8000
 
 # you can also add URLs and manage the archive via the CLI and filesystem: