-A ARGS... = .archive ARGS and exit
-append append database to end of file
-ascii = .mode ascii
-bail = .bail on
-batch force batch I/O
-box = .mode box
-column = .mode column
-cmd COMMAND run "COMMAND" before reading stdin
-csv = .mode csv
-deserialize open using sqlite3_deserialize()
-echo = .echo on
-init FILENAME read/process named file
-[no]header = .header [off] or on
-help show this message
-html = .mode HTML
-interactive force interactive I/O
-json = .mode json
-line = .mode line
-list = .mode list
-lookaside SIZE N use N entries of SIZE bytes for lookaside memory
-markdown = .mode markdown
-memtrace trace all memory allocations and (de)allocations
-mmap N default mmap size set to N
-newline SEP = .separator "|" SEP. Default: "\n"
-nofollow = refuse to open symbolic links to database files
-nullvalue TEXT = .NULLvalue TEXT. Default ""
-pagecache SIZE N use N slots of SIZE bytes each for page cache memory
-quote = .mode quote
-readonly open the database read-only
-separator SEP = .separator SEP. Default: "|"
-stats print memory stats before each finalize
-table = .mode table
-tabs = .mode tabs
-version = .version
-vfs NAME use NAME as the default VFS
-zip open the file as a ZIP Archive
.ar -cf archive.sar foo bar # Create archive.sar from files foo and bar
.ar -tf archive.sar # List members of archive.sar
.ar -xvf archive.sar # Verbosely extract files from archive.sar
每条命令行必须包含一个命令选项
-c, --create Create a new archive
-u, --update Update or add files to an existing archive
-t, --list List contents of archive
-x, --extract Extract files from archive
以及零个或多个可选选项
-v, --verbose Print each filename as it is processed
-f FILE, --file FILE Operate on archive FILE (default is current db)
-a FILE, --append FILE Operate on FILE opened using the apndvfs VFS
-C DIR, --directory DIR Change to directory DIR to read/extract files
-n, --dryrun Show the SQL that would have occurred