Command line
The camply CLI discovers campgrounds and watches live availability straight from your terminal. It talks directly to booking providers and needs no web account, database, or server setup.
Install it into an isolated environment with uv, or run commands one-off with uvx:
uv tool install camply-web
camply --help
If you also keep legacy camply installed, keep camply-web in a separate uv tool environment because both install a camply executable.
Discover locations
List the 26 supported providers (including their site-attribute filter capabilities), search recreation areas, and find exact campground IDs:
camply providers
camply recreation-areas --search Yosemite --state CA
camply campgrounds --rec-area 2991 --limit 100
camply --provider ReserveCalifornia campgrounds --search redwood
RecreationDotGov is the default provider. Pass --provider (case-insensitive) to choose another. Discovery prints up to 50 matches by default—pass --limit (1–500) to show more, or add --search, --state, or --rec-area to narrow results. When searching ReserveAmerica, include --state so camply does not scan every state.
Watch for a stay
Pass one or more --campground or --rec-area IDs from discovery along with paired --start-date and --end-date flags:
camply campsites --campground 232450 \
--start-date 2027-07-10 --end-date 2027-07-18 --nights 3
camply checks availability right away, prints matching stays with booking links, and re-checks every --interval minutes (default 10, minimum 5) until you press Ctrl-C. Pass --search-once to run a single check and exit immediately.
- Dates:
--start-dateis check-in (inclusive) and--end-dateis checkout (exclusive). Repeat both flags in pairs to watch multiple date windows in one command. - Stay length:
--nightsdefaults to1and matches exact-length consecutive stays at a single site (for example, a 4-night opening yields two 3-night options when--nights 3). - Targets: Multiple
--rec-areaflags combine their campgrounds. If you pass--campgroundalongside--rec-area, explicit campground IDs win.
Run multiple searches from a YAML file
Save this minimal configuration in camply.yaml to watch May at Lower Pines in Yosemite and February at Furnace Creek in Death Valley. Choose IDs and dates for your trip, and quote IDs to preserve leading zeros. Lower Pines, Furnace Creek.
version: 2
searches:
- name: yosemite
provider: RecreationDotGov
campgrounds: ["232450"]
dates:
- start_date: "2027-05-01"
end_date: "2027-06-01"
- name: death-valley
provider: RecreationDotGov
campgrounds: ["232496"]
dates:
- start_date: "2027-02-01"
end_date: "2027-03-01"The required top-level version: 2 identifies the YAML format. Camply reports unsupported versions before starting any searches.
Run continuously or check once.
camply campsites --yaml-config camply.yaml
camply campsites --yaml-config camply.yaml --search-once --jsonTo see every option, download the full camply.yaml example or save it with cURL.
curl --fail --location --output camply.yaml https://camply.rocks/docs/examples/camply.yamlFull configuration example
# yaml-language-server: $schema=https://raw.githubusercontent.com/juftin/camply-web/main/docs/cli-yaml-config.schema.json
# Run with: camply campsites --yaml-config camply.yaml
# Edit the target IDs and date windows for the campsites you want to watch.
# Required YAML format version. This example uses version 2.
version: 2
# Optional settings shared by all searches. The values below are the built-in
# defaults. A search can override any setting here. A list override replaces the
# whole shared list, and [] clears it.
defaults:
# Occupied weekdays to match. Use names or abbreviations, such as [Fri, Sat].
# An empty list allows every day when weekends is false.
days: []
# Add Friday and Saturday nights to the selected weekdays.
weekends: false
# Match this exact number of consecutive nights at one campsite (minimum 1).
nights: 1
# Allow any campsite type with []. Options are TENT, RV, CABIN, and OTHER.
campsite_types: []
# Require an electric hookup.
electric: false
# Require an ADA-accessible site.
accessible: false
# Minimum compatible RV or trailer length in feet (1–200).
# The default applies no length filter, so leave this key omitted.
# rv_length: 28
# Minutes between availability checks (minimum 5).
interval: 10
# Push channels. [] prints results to the terminal only.
# ntfy requires NTFY_TOPIC. NTFY_SERVER_URL and NTFY_ACCESS_TOKEN are optional.
# pushover requires PUSHOVER_USER_KEY and PUSHOVER_APP_TOKEN.
notifications: []
# At least one search is required. Each search needs a unique name, a provider,
# one or more campground or recreation-area IDs, and at least one date window.
searches:
# Required name used in results, diagnostics, and notifications.
- name: yosemite
# Required provider name or alias. Run `camply providers` for the list.
provider: RecreationDotGov
# Campground IDs from `camply campgrounds`. Quote IDs to retain leading zeros.
# The default [] lets recreation_areas determine the targets.
campgrounds: ["232450"]
# Recreation-area IDs from `camply recreation-areas`. [] selects no areas.
# When both lists are populated, the explicit campgrounds take precedence.
recreation_areas: []
# Specific campsite IDs or names within the targets. [] allows every site.
campsites: []
# Required date windows in YYYY-MM-DD format. Add entries to watch more dates.
dates:
- start_date: "2027-05-07" # Inclusive check-in date.
end_date: "2027-05-10" # Exclusive checkout date.
- start_date: "2027-05-17"
end_date: "2027-05-20"
# Clear both inherited filters to allow every night in this range.
days: []
weekends: false
# Inherited by this search's date ranges. Together these allow Fri–Sun.
days: [Sun]
weekends: true
# By default, alert history is in memory. Set a unique JSON file per search
# to keep it across runs. Relative paths start beside this YAML file.
# state_file: yosemite-state.json
- name: california-state-park
provider: ReserveCalifornia
campgrounds: ["327"]
dates:
- start_date: "2027-05-14"
end_date: "2027-05-17"
# Uncomment to poll this search every 15 minutes instead of inheriting 10.
# interval: 15
# Uncomment to keep this search console-only if you enable shared alerts.
# notifications: []
# Uncomment to clear a shared minimum RV length for this search.
# rv_length: nullBoth examples print results to the terminal. To enable ntfy alerts, add ntfy to defaults.notifications and set NTFY_TOPIC before running the command.
Searches inherit settings they omit from defaults. A search's list replaces the shared list, so notifications: [] keeps that search console-only. Use rv_length: null to clear an inherited minimum RV length. Names, providers, targets, dates, and state files are set per search. Relative state paths are resolved from the directory containing the YAML file. Channel credentials and destinations come from the environment.
Set days and weekends in defaults, beside dates in a search, or inside a date range. Each setting inherits independently. A range overrides its search, and a search overrides defaults. days: [] clears inherited weekdays, and weekends: false turns off the inherited weekend filter. With weekends: true, Friday and Saturday are included along with any days you list. If date ranges overlap, a night qualifies when any range covering it allows it.
With --search-once --json, the CLI outputs one ordered array with each search's name, provider, status, and stays. A search with no matches returns ok and an empty list. A failed search returns error, and the command exits with status 1 after the batch finishes. Local validation errors exit with status 2. Diagnostics go to stderr.
Editors that use the YAML Language Server read the schema URL from the full example's first line. For other editors, associate the YAML file with docs/cli-yaml-config.schema.json from the repository. See the configuration field reference for settings and defaults.
To migrate a legacy flat file, set version: 2 and create one entry under searches with a name and an explicit provider. Convert scalar target and channel values to lists, use recreation_areas for recreation-area IDs, and move each start and end date pair into dates. Use interval for the polling interval and the CLI's --search-once when you want a single pass. Replace legacy offline history settings with a per-search state_file.
Filter by site type, equipment, hookups, and specific sites
Narrow availability matches to campsites that fit your setup:
camply campsites --campground 232450 \
--start-date 2027-07-10 --end-date 2027-07-18 --nights 2 \
--campsite-type RV --electric --accessible --rv-length 28 \
--campsite 014--campsite-type: Repeat to allowTENT,RV,CABIN, orOTHERsites.--electric: Only match sites with electric hookups.--accessible: Only match ADA-accessible sites.--rv-length: Require a minimum compatible RV or trailer length in feet (1–200).--campsite: Filter by exact campsite ID or case-insensitive site name within your selected--campgroundor--rec-areatargets.
Filter by nights of the week
Use --weekends (Friday and Saturday nights) or repeat --day to watch specific nights across a longer range—such as any summer weekend in one command:
camply campsites --campground 232450 \
--start-date 2027-06-01 --end-date 2027-09-01 \
--weekends --nights 2Weekday filters apply to every occupied night, not the checkout date. A --weekends --nights 2 search matches Friday and Saturday nights with Sunday checkout. Add --day Sunday if you also want Saturday–Monday or Sunday nights.
In the web app, the same Weekends option under Nights of the week applies the same occupied-night rules, while showing full available blocks that meet your minimum stay length instead of fixed-length windows.
Send Pushover and ntfy notifications
Pass --notifications pushover and/or --notifications ntfy to receive push alerts when new qualifying stays open up. Verify your setup first with camply test-notifications:
export PUSHOVER_USER_KEY="your-user-key"
export PUSHOVER_APP_TOKEN="your-app-token"
camply test-notifications --notifications pushover
export NTFY_TOPIC="camply-alerts"
camply test-notifications --notifications ntfyDuring continuous watching, camply tracks seen openings in memory and only sends alerts for newly opened or reopened stays. When running single-pass checks from cron or a systemd timer (--search-once), pass --state-file to persist seen openings across runs:
export NTFY_TOPIC="camply-alerts"
camply campsites --campground 232450 \
--start-date 2027-07-10 --end-date 2027-07-14 --nights 2 \
--notifications ntfy \
--search-once --state-file ~/.cache/camply-yosemite.jsonAll notification settings (PUSHOVER_USER_KEY, PUSHOVER_APP_TOKEN, NTFY_TOPIC, optional NTFY_SERVER_URL defaulting to https://ntfy.sh, and optional NTFY_ACCESS_TOKEN) are read from environment variables and secret tokens are never logged.
JSON output for scripting
Pass --json to providers, recreation-areas, campgrounds, or campsites --search-once to emit machine-readable JSON on stdout while routing banners and diagnostics to stderr:
camply campgrounds --search Yosemite --state CA --limit 25 --json
camply campsites --campground 232450 \
--start-date 2027-07-10 --end-date 2027-07-12 \
--search-once --json