-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Write brief documentation about cli.
- Loading branch information
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Command line interface | ||
|
||
You can try out `actualpy` directly without the need if writing a custom script. All you need to do is install the | ||
command line interface with: | ||
|
||
```bash | ||
pip install "actualpy[cli]" | ||
``` | ||
|
||
You should then be able to generate exports directly: | ||
|
||
```console | ||
$ actualpy init | ||
Please enter the URL of the actual server [http://localhost:5006]: | ||
Please enter the Actual server password: | ||
(1) Test | ||
Please enter the budget index: 1 | ||
Name of the context for this budget [test]: | ||
Initialized budget 'test' | ||
$ actualpy export | ||
Exported budget 'Test' (budget id 'My-Finances-0b46239') to '2024-10-04-1438-Test.zip'. | ||
``` | ||
|
||
The configuration will be saved on the folder `.actualpy/config.yaml`. Check full help for more details: | ||
|
||
```console | ||
$ actualpy --help | ||
|
||
Usage: actualpy [OPTIONS] COMMAND [ARGS]... | ||
|
||
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ --output -o [table|json] Output format: table or json [default: table] │ | ||
│ --install-completion Install completion for the current shell. │ | ||
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │ | ||
│ --help Show this message and exit. │ | ||
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ accounts Show all accounts. │ | ||
│ export Generates an export from the budget (for CLI backups). │ | ||
│ init Initializes an actual budget config interactively if options are not provided. │ | ||
│ metadata Displays all metadata for the current budget. │ | ||
│ payees Show all payees. │ | ||
│ remove-context Removes a configured context from the configuration. │ | ||
│ transactions Show all transactions. │ | ||
│ use-context Sets the default context for the CLI. │ | ||
│ version Shows the library and server version. │ | ||
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters