Fakturownia CLI departments: list, fetch, create, update, delete, and upload department logos, with README-backed request and output discovery.
Auto-generated by
go run ./cmd/gen-skills. Do not edit manually.
PREREQUISITE: Read
fakturownia-sharedfirst.
name, shortcut, or tax_no before building payloads.fakturownia department list — List departmentsfakturownia department get — Fetch a single department by IDfakturownia department create — Create a departmentfakturownia department update — Update a departmentfakturownia department delete — Delete a departmentfakturownia department set-logo — Upload a department logo--page (default 1): Requested result page--per-page (default 25): Requested result count per page--id (required): Department ID--input (required): Department JSON input as inline JSON, @file, or - for stdin--yes (required, default false): Confirm department deletion--file (required): Logo file path or - for stdin--name: Override the uploaded file name; required when --file - is usedFAKTUROWNIA_PROFILE: Select a profile unless --profile is providedFAKTUROWNIA_URL: Override the base account URL from any profileFAKTUROWNIA_API_TOKEN: Override the API token from any profilefakturownia schema department list --json and fakturownia schema department get --json before building selectors.output.known_fields to discover README-backed department fields such as name, shortcut, and tax_no.fakturownia schema department create --json and fakturownia schema department update --json to inspect request_body_schema and accepted --input modes.--input accepts inline JSON, @file, or - for stdin, and the CLI wraps the inner object into the upstream department envelope.department set-logo uploads multipart content using department[logo]; when using --file -, pass --name as well.fakturownia department list --json
fakturownia department list --columns id,name,shortcut,tax_no
fakturownia department list --page 2 --per-page 25 --raw
fakturownia department get --id 10
fakturownia department get --id 10 --fields id,name,shortcut --json
fakturownia department get --id 10 --raw
fakturownia department create --input '{"name":"Sales","shortcut":"SALES","tax_no":"123-456-78-90"}' --json
fakturownia department create --input @department.json
fakturownia department create --input '{"name":"Sales"}' --dry-run --json
fakturownia department update --id 10 --input '{"shortcut":"SALES"}' --json
fakturownia department update --id 10 --input @department-update.json
fakturownia department update --id 10 --input '{"name":"Sales"}' --dry-run --json
fakturownia department delete --id 10 --yes --json
fakturownia department delete --id 10 --yes --dry-run --json
fakturownia department set-logo --id 10 --file ./logo.png --json
cat ./logo.png | fakturownia department set-logo --id 10 --file - --name logo.png --dry-run --json